From daffc63ee000f6de9dabc356057b3d00a2d71d83 Mon Sep 17 00:00:00 2001
From: kongzy <kongzy>
Date: Thu, 12 Oct 2023 12:54:57 +0800
Subject: [PATCH] 增加pro配置文件
---
exam-system/src/main/resources/mapper/noncoalmine/WorkRegistrationMapper.xml | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/exam-system/src/main/resources/mapper/noncoalmine/WorkRegistrationMapper.xml b/exam-system/src/main/resources/mapper/noncoalmine/WorkRegistrationMapper.xml
index 2407edd..187b535 100644
--- a/exam-system/src/main/resources/mapper/noncoalmine/WorkRegistrationMapper.xml
+++ b/exam-system/src/main/resources/mapper/noncoalmine/WorkRegistrationMapper.xml
@@ -22,19 +22,22 @@
update_time
from work_registration
where del_flag = 0
- <if test="query.dept != null and query.dept = ''">
+ <if test="query.dept != null and query.dept != ''">
and dept like concat('%', #{query.dept}, '%')
</if>
- <if test="query.name != null and query.name = ''">
+ <if test="query.name != null and query.name != ''">
and name like concat('%', #{query.name}, '%')
</if>
- <if test="query.idCard != null and query.idCard = ''">
+ <if test="query.idCard != null and query.idCard != ''">
and id_card like concat('%', #{query.idCard}, '%')
</if>
- <if test="query.operateTypeId != null and query.operateTypeId != 0">
+ <if test="query.operateTypeId != null">
and (operate_type_id = #{query.operateTypeId} OR operate_type_id IN ( SELECT t.id FROM sys_operate_type t WHERE find_in_set(#{query.operateTypeId}, ancestors)))
</if>
-
+ <if test="query.isCm != null">
+ and is_cm = #{query.isCm}
+ </if>
+ order by create_time desc
</select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.2