zjh
2023-10-17 40848500b3bf9a1b4fc637c224d6e35f07c13159
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);
        }
//        }
    }