| | |
| | | return AjaxResult.success("暂无数据"); |
| | | } |
| | | } |
| | | List<TjCustomer> customerLists = new ArrayList<>(); |
| | | List<TjCustomer> customerLists = null; |
| | | if (type == 0) { |
| | | customerLists = redisCache.getCacheMapValue(ksId + "ks", "wj"); |
| | | // customerLists = redisCache.getCacheMapValue(ksId + "ks", "wj"); |
| | | } |
| | | if (type == 1) { |
| | | customerLists = redisCache.getCacheMapValue(ksId + "ks", "yj"); |
| | | // customerLists = redisCache.getCacheMapValue(ksId + "ks", "yj"); |
| | | } |
| | | asyncService.dockerSetCustomerLisByRedis(ksproList, String.valueOf(ksId)); |
| | | if (customerLists != null && customerLists.size() > 0) { |
| | | Collections.reverse(customerLists); |
| | | List<TjCustomer> customerList = customerLists.stream().skip((long) (page - 1) * pageSize).limit(pageSize).collect(Collectors.toList()); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("date", customerList); |
| | | map.put("total", customerLists.size()); |
| | | return AjaxResult.success(map); |
| | | } else { |
| | | AjaxResult map = getAjaxResult(type, page, pageSize, ksproList, customerLis); |
| | | if (map != null) return map; |
| | | return AjaxResult.success("暂时没有数据"); |
| | | } |
| | | AjaxResult map = getAjaxResult(type, page, pageSize, ksproList, customerLis); |
| | | if (map != null) return map; |
| | | return AjaxResult.success("暂时没有数据"); |
| | | } |
| | | |
| | | |
| | |
| | | ) |
| | | .collect(Collectors.toList()); |
| | | |
| | | if (ksproList == null || ksproList.size() == 0) { |
| | | if (ksproList.size() == 0) { |
| | | return AjaxResult.error("请完善科室项目信息"); |
| | | } |
| | | List<TjCustomer> customerLis = new ArrayList<>(); |
| | |
| | | return AjaxResult.success("暂无数据"); |
| | | } |
| | | } |
| | | List<TjCustomer> customerLists = new ArrayList<>(); |
| | | List<TjCustomer> customerLists = null; |
| | | if (type == 0) { |
| | | customerLists = redisCache.getCacheMapValue(ksId + "ks", "wj"); |
| | | // customerLists = redisCache.getCacheMapValue(ksId + "ks", "wj"); |
| | | } |
| | | if (type == 1) { |
| | | customerLists = redisCache.getCacheMapValue(ksId + "ks", "yj"); |
| | | // customerLists = redisCache.getCacheMapValue(ksId + "ks", "yj"); |
| | | } |
| | | asyncService.dockerSetCustomerLisByRedis(ksproList, String.valueOf(ksId)); |
| | | if (customerLists != null && customerLists.size() > 0) { |
| | | // asyncService.dockerSetCustomerLisByRedis(ksproList, String.valueOf(ksId)); |
| | | if (customerLists.size() > 0) { |
| | | Collections.reverse(customerLists); |
| | | List<TjCustomer> customerList = customerLists.stream().skip((long) (page - 1) * pageSize).limit(pageSize).collect(Collectors.toList()); |
| | | Map<String, Object> map = new HashMap<>(); |