From 0b3ff378a9faaf9d7a4831b7f0de67378fe0dfea Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 30 五月 2023 12:20:15 +0800
Subject: [PATCH] optimize 统计

---
 java110-db/src/main/resources/mapper/community/RepairServiceDaoImplMapper.xml |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/community/RepairServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/RepairServiceDaoImplMapper.xml
index 2830f21..116c52a 100755
--- a/java110-db/src/main/resources/mapper/community/RepairServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/RepairServiceDaoImplMapper.xml
@@ -139,7 +139,7 @@
         t.repair_obj_type,t.repair_obj_id,t.repair_obj_name,t.repair_obj_type repairObjType,t.repair_obj_id repairObjId,
         t.repair_obj_name repairObjName,rrv.visit_type visitType,rrv.context visitContext,a.appraise_score
         appraiseScore, a.door_speed_score doorSpeedScore,a.repairman_service_score repairmanServiceScore,
-        t.pay_type,t.pay_type payType,rs.repair_setting_type repairSettingType,d1.name repairSettingTypeName
+        t.pay_type,t.pay_type payType,rs.repair_setting_type repairSettingType,d1.name repairSettingTypeName,t.create_time createTime
         <if test="staffId != null and staffId != ''">
             ,rru.state repairDispatchState,rru.context repairDispatchContext,td.name repairDispatchStateName
         </if>
@@ -178,6 +178,9 @@
         </if>
         <if test="repairName !=null and repairName != ''">
             and t.repair_name like '%${repairName}%'
+        </if>
+        <if test="repairNameLike !=null and repairNameLike != ''">
+            and t.repair_name like concat('%',#{repairNameLike},'%')
         </if>
         <if test="appointmentTime !=null ">
             and t.appointment_time= #{appointmentTime}
@@ -323,6 +326,9 @@
         <if test="repairName !=null and repairName != ''">
             and t.repair_name like '%${repairName}%'
         </if>
+        <if test="repairNameLike !=null and repairNameLike != ''">
+            and t.repair_name like concat('%',#{repairNameLike},'%')
+        </if>
         <if test="appointmentTime !=null ">
             and t.appointment_time= #{appointmentTime}
         </if>

--
Gitblit v1.8.0