From e3a2245265516fef78b4737d6fffc939e7c5e0af Mon Sep 17 00:00:00 2001 From: huliguo <2023611923@qq.com> Date: 星期四, 03 七月 2025 17:56:07 +0800 Subject: [PATCH] bug修改 --- pt-errand/src/main/resources/mapper/ReportMapper.xml | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pt-errand/src/main/resources/mapper/ReportMapper.xml b/pt-errand/src/main/resources/mapper/ReportMapper.xml index 731ee39..109555f 100644 --- a/pt-errand/src/main/resources/mapper/ReportMapper.xml +++ b/pt-errand/src/main/resources/mapper/ReportMapper.xml @@ -9,13 +9,12 @@ tr.community_name as communityName, tre.name as regionName, tr.address_detail as addressDetail, - tau.name as appUserName, - tau.phone as appUserPhone, + tr.username as appUserName, + tr.phone as appUserPhone, tr.create_time as createTime, tr.status as status from t_report tr - left join t_app_user tau on tr.app_user_id = tau.id left join t_region tre on tr.region_id = tre.id where tr.del_flag=0 @@ -26,14 +25,14 @@ and tre.id =#{dto.regionId} </if> <if test="dto.appUserName!=null and ''!=dto.appUserName"> - and tau.name like concat('%',#{dto.appUserName},'%') + and tr.username like concat('%',#{dto.appUserName},'%') </if> <if test="dto.appUserPhone!=null and ''!=dto.appUserPhone"> - and tau.phone like concat('%',#{dto.appUserPhone},'%') + and tr.phone like concat('%',#{dto.appUserPhone},'%') </if> <if test="dto.status!=null"> and tr.status =#{dto.status} </if> - + order by tr.create_time desc </select> </mapper> \ No newline at end of file -- Gitblit v1.7.1