| | |
| | | redisCache.setCacheMapValue("updateCheckType"+tjNum,tjNum,getAjaxResult(tjNum)); |
| | | } |
| | | |
| | | @Override |
| | | @Async("async") |
| | | public void addRedis(List<TjCustomer> customers) { |
| | | for (TjCustomer customer : customers) { |
| | | redisCache.setCacheMapValue("updateCheckType"+customer.getTjNumber(),customer.getTjNumber(),getAjaxResult(customer.getTjNumber())); |
| | | } |
| | | } |
| | | // @Override |
| | | // @Async("async") |
| | | // public void addRedis(List<TjCustomer> customers) { |
| | | // for (TjCustomer customer : customers) { |
| | | // redisCache.setCacheMapValue("updateCheckType"+customer.getTjNumber(),customer.getTjNumber(),getAjaxResult(customer.getTjNumber())); |
| | | // } |
| | | // } |
| | | |
| | | private void getTjPackageListsByMan(List<TjPackage> tjPackageList) { |
| | | if (null != tjPackageList && tjPackageList.size() > 0) { |
| | |
| | | customers = redisCache.getCacheMapValue("check", "ys"); |
| | | } |
| | | if (customers != null && customers.size() > 0) { |
| | | asyncService.addRedis(customers); |
| | | // asyncService.addRedis(customers); |
| | | List<TjCustomer> customerLists = customers.stream().skip((long) (page - 1) * pageSize).limit(pageSize).collect(Collectors.toList()); |
| | | map.put("customers", customerLists); |
| | | map.put("total", customers.size()); |
| | |
| | | //总检点击体检信息详情 |
| | | void updateCheckType(String tjNum); |
| | | |
| | | void addRedis(List<TjCustomer> customers); |
| | | // void addRedis(List<TjCustomer> customers); |
| | | } |