From 9daeb7b3d3b20a78775bd175746c052682e84f9c Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期四, 31 十月 2024 03:41:42 +0800
Subject: [PATCH] 优化代码
---
java110-db/src/main/resources/mapper/oa/WorkEventV1ServiceDaoImplMapper.xml | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/oa/WorkEventV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/oa/WorkEventV1ServiceDaoImplMapper.xml
index 2d2f575..8c5f630 100644
--- a/java110-db/src/main/resources/mapper/oa/WorkEventV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/oa/WorkEventV1ServiceDaoImplMapper.xml
@@ -8,9 +8,9 @@
<!-- 淇濆瓨宸ヤ綔鍗曚簨浠朵俊鎭� add by wuxw 2018-07-03 -->
<insert id="saveWorkEventInfo" parameterType="Map">
insert into work_event(
- event_id,pre_staff_name,pre_staff_id,staff_name,remark,community_id,store_id,task_id,work_id,staff_id,item_id
+ event_id,pre_staff_name,pre_staff_id,staff_name,remark,community_id,store_id,task_id,work_id,staff_id,item_id,content_id
) values (
- #{eventId},#{preStaffName},#{preStaffId},#{staffName},#{remark},#{communityId},#{storeId},#{taskId},#{workId},#{staffId},#{itemId}
+ #{eventId},#{preStaffName},#{preStaffId},#{staffName},#{remark},#{communityId},#{storeId},#{taskId},#{workId},#{staffId},#{itemId},#{contentId}
)
</insert>
@@ -22,7 +22,7 @@
staffName,t.remark,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id
communityId,t.store_id,t.store_id storeId,t.task_id,t.task_id taskId,t.work_id,t.work_id
workId,t.staff_id,t.staff_id staffId,t.create_time createTime,wt.start_time startTime,wt.end_time endTime,
- t.item_id itemId
+ t.item_id itemId,t.content_id contentId
from work_event t
left join work_task wt on t.task_id = wt.task_id
where 1 =1
@@ -64,6 +64,9 @@
</if>
<if test="itemId !=null and itemId != ''">
and t.item_id= #{itemId}
+ </if>
+ <if test="contentId !=null and contentId != ''">
+ and t.content_id= #{contentId}
</if>
<if test="queryStartTime !=null and queryStartTime != ''">
and t.create_time > #{queryStartTime}
@@ -170,6 +173,9 @@
<if test="itemId !=null and itemId != ''">
and t.item_id= #{itemId}
</if>
+ <if test="contentId !=null and contentId != ''">
+ and t.content_id= #{contentId}
+ </if>
<if test="queryStartTime !=null and queryStartTime != ''">
and t.create_time > #{queryStartTime}
</if>
--
Gitblit v1.8.0