| | |
| | | private String secret; |
| | | @Test |
| | | public void test() { |
| | | List<DictHosp> list = dictHospService.list(); |
| | | for (DictHosp dictHosp : list) { |
| | | // List<DictHosp> list = dictHospService.list(); |
| | | // for (DictHosp dictHosp : list) { |
| | | // DateTime dateTime1 = DateUtil.offsetMonth(new Date(),6); |
| | | String mallMerchantSecretKey = SecurityUtils.getMallMerchantSecretKey(secret,dictHosp.getHospAreaId(),dictHosp.getHospAreaName(),dictHosp.getExpirationTime()); |
| | | dictHosp.setSecretKey(mallMerchantSecretKey); |
| | | // String mallMerchantSecretKey = SecurityUtils.getMallMerchantSecretKey(secret,dictHosp.getHospAreaId(),dictHosp.getHospAreaName(),dictHosp.getExpirationTime()); |
| | | // dictHosp.setSecretKey(mallMerchantSecretKey); |
| | | // dictHosp.setExpirationTime(DateUtil.offsetDay(new Date(),30)); |
| | | // dictHospService.updateById(dictHosp); |
| | | // System.out.println(dateTime1); |
| | | // System.out.println("================================================="); |
| | | // System.out.println(mallMerchantSecretKey); |
| | | } |
| | | // } |
| | | } |
| | | |
| | | |