From c858ae26143fde37b8c77d403baeb7a050bc2ab6 Mon Sep 17 00:00:00 2001 From: zf <1603559716@qq.com> Date: 星期一, 25 九月 2023 15:17:42 +0800 Subject: [PATCH] 非煤相关接口 --- exam-system/src/main/resources/mapper/noncoalmine/WorkRegistrationMapper.xml | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/exam-system/src/main/resources/mapper/noncoalmine/WorkRegistrationMapper.xml b/exam-system/src/main/resources/mapper/noncoalmine/WorkRegistrationMapper.xml index ab483aa..ed03271 100644 --- a/exam-system/src/main/resources/mapper/noncoalmine/WorkRegistrationMapper.xml +++ b/exam-system/src/main/resources/mapper/noncoalmine/WorkRegistrationMapper.xml @@ -22,20 +22,19 @@ 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"> 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> order by create_time desc - </select> </mapper> \ No newline at end of file -- Gitblit v1.9.2