lige
2023-10-17 d39ee27429931bc74ede6a2345c14bb729bbd802
ltkj-admin/src/test/java/zjhTest.java
@@ -58,17 +58,17 @@
    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);
//        }
        }
    }