From 92ac1754c713d206ebdafa3da8ec817c1d1e120d Mon Sep 17 00:00:00 2001
From: heheng <heheng@123456>
Date: 星期四, 16 一月 2025 16:39:09 +0800
Subject: [PATCH] 特种作业缴费版本

---
 exam-system/src/main/resources/mapper/noncoalmine/ViolationRegistrationMapper.xml |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/exam-system/src/main/resources/mapper/noncoalmine/ViolationRegistrationMapper.xml b/exam-system/src/main/resources/mapper/noncoalmine/ViolationRegistrationMapper.xml
index f4eb62c..61d86a2 100644
--- a/exam-system/src/main/resources/mapper/noncoalmine/ViolationRegistrationMapper.xml
+++ b/exam-system/src/main/resources/mapper/noncoalmine/ViolationRegistrationMapper.xml
@@ -23,18 +23,21 @@
         update_time
         from violation_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>

--
Gitblit v1.9.2