| | |
| | | List<Map<String, Object>> extracted = extracted(arrayList, list,pageNum,pageSize); |
| | | return AjaxResult.success(extracted); |
| | | } |
| | | |
| | | if(null !=name){ |
| | | wq.like(TjSampling::getCusName,name); |
| | | List<TjSampling> list = tjSamplingService.list(wq); |
| | |
| | | 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); |
| | | } |
| | | |
| | |
| | | for (Map.Entry<String, List<TjSampling>> entry : stringListMap.entrySet()) { |
| | | Map<String,Object>map=new HashMap<>(); |
| | | TjCustomer customer = customerService.getById(entry.getKey()); |
| | | if (customer==null){ |
| | | continue; |
| | | } |
| | | customer.setCusName(MatchUtils.hideCusName(customer.getCusName())); |
| | | customer.setCusPhone(MatchUtils.hidePhoneNum(customer.getCusPhone())); |
| | | customer.setCusIdcard(MatchUtils.hideIdCardNum(customer.getCusIdcard())); |