From 1d9f7b0cf4251f3058badb07dd7a2bc06b6bc09a Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期五, 11 四月 2025 10:05:32 +0800 Subject: [PATCH] bug修改 --- cloud-server-management/src/main/java/com/dsh/guns/modular/system/service/impl/EvaluationServiceImpl.java | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/service/impl/EvaluationServiceImpl.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/service/impl/EvaluationServiceImpl.java index d0f0e24..c09c097 100644 --- a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/service/impl/EvaluationServiceImpl.java +++ b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/service/impl/EvaluationServiceImpl.java @@ -28,29 +28,36 @@ 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 public TEvaluationListVo info(Integer id) { TEvaluationListVo info = this.baseMapper.info(id); Integer appUserId = info.getAppUserId(); + System.err.println("查詢用戶"); TAppUser tAppUser = appUserClient.queryById(appUserId); + System.err.println("========="+tAppUser); info.setName(tAppUser.getName()); info.setPhone(tAppUser.getPhone()); return info; -- Gitblit v1.7.1