From f14c50cb0036d3ddd655ce4e34732ba396a836c4 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 30 五月 2023 12:42:03 +0800
Subject: [PATCH] optimize 统计
---
java110-db/src/main/resources/mapper/community/InspectionTaskServiceDaoImplMapper.xml | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/InspectionTaskServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/InspectionTaskServiceDaoImplMapper.xml
index 8096b66..38a6398 100755
--- a/java110-db/src/main/resources/mapper/community/InspectionTaskServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/InspectionTaskServiceDaoImplMapper.xml
@@ -141,6 +141,9 @@
<if test="planUserId !=null and planUserId != ''">
and t.plan_user_id= #{planUserId}
</if>
+ <if test="originalPlanUserId !=null and originalPlanUserId != ''">
+ and t.original_plan_user_id= #{originalPlanUserId}
+ </if>
<if test="startTime != null">
and t.act_ins_time >= #{startTime}
</if>
@@ -148,7 +151,7 @@
and t.act_ins_time <= #{endTime}
</if>
<if test="planInsTime !=null ">
- and t.plan_ins_time= #{planInsTime}
+ and DATE_FORMAT(t.plan_ins_time,'%Y-%m-%d')= #{planInsTime}
</if>
<if test="planEndTime !=null ">
and t.plan_end_time= #{planEndTime}
@@ -285,6 +288,9 @@
<if test="planUserId !=null and planUserId != ''">
and t.plan_user_id= #{planUserId}
</if>
+ <if test="originalPlanUserId !=null and originalPlanUserId != ''">
+ and t.original_plan_user_id= #{originalPlanUserId}
+ </if>
<if test="startTime != null">
and t.act_ins_time >= #{startTime}
</if>
@@ -292,7 +298,7 @@
and t.act_ins_time <= #{endTime}
</if>
<if test="planInsTime !=null ">
- and t.plan_ins_time= #{planInsTime}
+ and DATE_FORMAT(t.plan_ins_time,'%Y-%m-%d')= #{planInsTime}
</if>
<if test="planEndTime !=null ">
and t.plan_end_time= #{planEndTime}
--
Gitblit v1.8.0