From 297ba5938ca64291f4b74a056fa381dbf410825f Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期三, 27 十二月 2023 09:56:06 +0800
Subject: [PATCH] 抄送我的工单查看
---
java110-db/src/main/resources/mapper/oa/WorkPoolV1ServiceDaoImplMapper.xml | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 104 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/oa/WorkPoolV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/oa/WorkPoolV1ServiceDaoImplMapper.xml
index 015fa4d..5d1441e 100644
--- a/java110-db/src/main/resources/mapper/oa/WorkPoolV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/oa/WorkPoolV1ServiceDaoImplMapper.xml
@@ -285,4 +285,108 @@
</select>
+ <select id="queryCopyWorkPoolsCount" parameterType="Map" resultType="Map">
+ select count(1) count
+ from work_pool t
+ left join work_type wt on t.wt_id = wt.wt_id
+ left join work_copy wc on t.work_id = wc.work_id and wc.status_cd = '0'
+ left join t_dict td on wc.state = td.status_cd and td.table_name = 'work_pool' and td.table_columns = 'state'
+ where 1 =1
+ <if test="workCycle !=null and workCycle != ''">
+ and t.work_cycle= #{workCycle}
+ </if>
+ <if test="staffId !=null and staffId != ''">
+ and wc.staff_id= #{staffId}
+ </if>
+ <if test="staffName !=null and staffName != ''">
+ and wc.staff_name = #{staffName}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="storeId !=null and storeId != ''">
+ and t.store_id= #{storeId}
+ </if>
+ <if test="workName !=null and workName != ''">
+ and t.work_name= #{workName}
+ </if>
+ <if test="workId !=null and workId != ''">
+ and t.work_id= #{workId}
+ </if>
+ <if test="wtId !=null and wtId != ''">
+ and t.wt_id= #{wtId}
+ </if>
+
+ <if test="queryStartTime !=null and queryStartTime !=''">
+ and wc.create_time >= #{queryStartTime}
+ </if>
+ <if test="queryEndTime !=null and queryEndTime !=''">
+ and wc.create_time <= #{queryEndTime}
+ </if>
+ <if test="state !=null and state != ''">
+ and wc.state= #{state}
+ </if>
+ <if test="communityId !=null and communityId != ''">
+ and t.community_id= #{communityId}
+ </if>
+
+
+ </select>
+
+ <select id="queryCopyWorkPools" parameterType="Map" resultType="Map">
+ select t.work_cycle,t.work_cycle workCycle,t.create_user_id
+ createUserId,t.create_user_name,t.create_user_name createUserName,t.status_cd,t.status_cd
+ statusCd,t.store_id storeId,t.work_name workName,t.work_id
+ workId,t.wt_id wtId,t.create_user_tel createUserTel,t.start_time
+ startTime,t.end_time endTime,wc.state,t.community_id communityId,t.create_time createTime,
+ td.`name` stateName,wt.type_name typeName,wc.staff_name curCopyName,wc.copy_id copyId
+ from work_pool t
+ left join work_type wt on t.wt_id = wt.wt_id
+ left join work_copy wc on t.work_id = wc.work_id and wc.status_cd = '0'
+ left join t_dict td on wc.state = td.status_cd and td.table_name = 'work_pool' and td.table_columns = 'state'
+ where 1 =1
+ <if test="workCycle !=null and workCycle != ''">
+ and t.work_cycle= #{workCycle}
+ </if>
+ <if test="staffId !=null and staffId != ''">
+ and wc.staff_id= #{staffId}
+ </if>
+ <if test="staffName !=null and staffName != ''">
+ and wc.staff_name = #{staffName}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="storeId !=null and storeId != ''">
+ and t.store_id= #{storeId}
+ </if>
+ <if test="workName !=null and workName != ''">
+ and t.work_name= #{workName}
+ </if>
+ <if test="workId !=null and workId != ''">
+ and t.work_id= #{workId}
+ </if>
+ <if test="wtId !=null and wtId != ''">
+ and t.wt_id= #{wtId}
+ </if>
+
+ <if test="queryStartTime !=null and queryStartTime !=''">
+ and wc.create_time >= #{queryStartTime}
+ </if>
+ <if test="queryEndTime !=null and queryEndTime !=''">
+ and wc.create_time <= #{queryEndTime}
+ </if>
+ <if test="state !=null and state != ''">
+ and wc.state= #{state}
+ </if>
+ <if test="communityId !=null and communityId != ''">
+ and t.community_id= #{communityId}
+ </if>
+ order by wc.create_time desc
+ <if test="page != -1 and page != null ">
+ limit #{page}, #{row}
+ </if>
+
+ </select>
+
</mapper>
--
Gitblit v1.8.0