| | |
| | | private AppUserClient appUserClient; |
| | | |
| | | @Override |
| | | public List<TEvaluationListVo> listAll(Page<TEvaluationListVo> page, String provinceCode, String cityCode, String name, String phone, String shopName) { |
| | | public List<TEvaluationListVo> listAll(Page<TEvaluationListVo> page, String provinceCode, String cityCode, String name, String phone, String shopName,List<Integer >operatorId) { |
| | | List<TAppUser> list = appUserClient.queryByNamePhone(new QueryByNamePhone(name,phone)); |
| | | if(list.size()==0){ |
| | | return new ArrayList<>(); |
| | | } |
| | | |
| | | List<TEvaluationListVo> tEvaluationListVos = this.baseMapper.listAll(page, provinceCode, cityCode, name, phone, shopName); |
| | | ArrayList<TEvaluationListVo> res = new ArrayList<>(); |
| | | |
| | | List<TEvaluationListVo> tEvaluationListVos = this.baseMapper.listAll(page, provinceCode, cityCode, |
| | | shopName, phone, shopName,operatorId); |
| | | for (TEvaluationListVo tEvaluationListVo : tEvaluationListVos) { |
| | | for (TAppUser tAppUser : list) { |
| | | if(tEvaluationListVo.getAppUserId().equals(tAppUser.getId())){ |
| | | tEvaluationListVo.setName(tAppUser.getName()); |
| | | tEvaluationListVo.setPhone(tAppUser.getPhone()); |
| | | res.add(tEvaluationListVo); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | return tEvaluationListVos; |
| | | return res; |
| | | } |
| | | |
| | | @Override |