| | |
| | | cacheMapValue = redisCache.getCacheMapValue("sampling", "wqs"); |
| | | } |
| | | asyncService.saveSampling(); |
| | | List<Map<String,Object>> collect =null; |
| | | List<Map<String,Object>> collect =new ArrayList<>(); |
| | | Map<String,Object>map=new HashMap<>(); |
| | | if(null ==cacheMapValue || cacheMapValue.size()==0){ |
| | | wq.eq(TjSampling::getIsSignFor,isSignFor); |
| | |
| | | collect = cacheMapValue.stream().skip((long) (pageNum - 1) * pageSize).limit(pageSize).collect(Collectors.toList()); |
| | | map.put("total",cacheMapValue.size()); |
| | | } |
| | | map.put("list",collect); |
| | | if (collect!=null){ |
| | | map.put("list",collect); |
| | | }else { |
| | | map.put("list",new ArrayList<Map<String,Object>>()); |
| | | } |
| | | |
| | | return AjaxResult.success(map); |
| | | } |
| | | |