| | |
| | | @Test |
| | | public void test() { |
| | | // List<DictHosp> list = dictHospService.list(); |
| | | // DateTime dateTime1 = DateUtil.offsetMonth(new Date(),100); |
| | | // for (DictHosp dictHosp : list) { |
| | | // DateTime dateTime1 = DateUtil.offsetMonth(new Date(),6); |
| | | // String mallMerchantSecretKey = SecurityUtils.getMallMerchantSecretKey(secret,dictHosp.getHospAreaId(),dictHosp.getHospAreaName(),dictHosp.getExpirationTime()); |
| | | // String mallMerchantSecretKey = SecurityUtils.getMallMerchantSecretKey(secret,dictHosp.getHospAreaId(),dictHosp.getHospAreaName(),dateTime1); |
| | | // dictHosp.setSecretKey(mallMerchantSecretKey); |
| | | // dictHosp.setExpirationTime(DateUtil.offsetDay(new Date(),30)); |
| | | // dictHosp.setExpirationTime(dateTime1); |
| | | // dictHospService.updateById(dictHosp); |
| | | // System.out.println(dateTime1); |
| | | // System.out.println("================================================="); |
| | | // System.out.println(mallMerchantSecretKey); |
| | | |
| | | // List<Object> list=new ArrayList<>(); |
| | | // ScanOptions options = ScanOptions.scanOptions().match("cS*").build(); |
| | | // try (Cursor<byte[]> cursor = redisTemplate.executeWithStickyConnection(redisConnection -> { |
| | | // return redisConnection.scan(options); |
| | | // })) { |
| | | // while (cursor.hasNext()) { |
| | | // byte[] keyBytes = cursor.next(); |
| | | // String key = new String(keyBytes); |
| | | // // 处理匹配的key |
| | | // List<Object> multiCacheMapValue = redisCache.getMultiCacheMapValue(key, null); |
| | | // list.add(multiCacheMapValue); |
| | | // } |
| | | // } |
| | | // System.out.println(list); |
| | | // System.out.println(redisCache.getMultiCacheMapValue("check",null)); |
| | | // } |
| | | |
| | | /* LambdaQueryWrapper<TjProject> wq=new LambdaQueryWrapper<>(); |
| | | wq.eq(TjProject::getProParentId,0); |
| | | List<TjProject> projectList = projectService.list(wq); |
| | | for (TjProject project : projectList) { |
| | | LambdaQueryWrapper<TjProject> wqq=new LambdaQueryWrapper<>(); |
| | | wqq.eq(TjProject::getProParentId,project.getProId()); |
| | | List<TjProject> list = projectService.list(wqq); |
| | | for (TjProject tjProject : list) { |
| | | tjProject.setDeptId(project.getDeptId()); |
| | | projectService.updateById(tjProject); |
| | | } |
| | | }*/ |
| | | } |
| | | |
| | | |