From eb844dbc762cfbd65f027229a9fc43469aaf65d0 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 06 九月 2024 14:57:24 +0800
Subject: [PATCH] 考核模板定时任务getList分离

---
 ycl-server/src/main/resources/mapper/zgyw/CheckIndexFaceMapper.xml |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/ycl-server/src/main/resources/mapper/zgyw/CheckIndexFaceMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/CheckIndexFaceMapper.xml
index 557f602..fa8afc6 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/CheckIndexFaceMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/CheckIndexFaceMapper.xml
@@ -48,6 +48,21 @@
         order by tcif.examine_tag desc,tcif.create_time,tcs.score desc
     </select>
 
+    <select id="getCheckIndexFaceList"  resultMap="CheckIndexFaceResult">
+        select tcif.*,sd.dept_name
+        from t_check_index_face tcif left join sys_dept sd on tcif.dept_id = sd.dept_id
+        <where>
+            <if test="examineTag != null "> and tcif.examine_tag = #{examineTag}</if>
+            <if test="date != null "> and  date_format(tcif.create_time,'%Y-%m') = #{date}</if>
+            <if test="day != null "> and  date(tcif.create_time) = #{day}</if>
+            <if test="deptIds != null ">and tcif.dept_id in
+                <foreach collection="deptIds" separator="," open="(" close=")" item="deptId">
+                    #{deptId}
+                </foreach>
+            </if>
+        </where>
+    </select>
+
     <select id="selectCheckIndexFaceById"  resultMap="CheckIndexFaceResult">
         <include refid="selectCheckIndexFaceVo"/>
         where id = #{id}

--
Gitblit v1.8.0