From c3166a089f2c42dc86476dc1f9ff63fd25d7d199 Mon Sep 17 00:00:00 2001 From: 16639036659 <577530412@qq.com> Date: 星期一, 15 一月 2024 09:21:21 +0800 Subject: [PATCH] 隐患名称查询 --- src/main/resources/mybatis/tr/HiddenDangerCheckPointMapper.xml | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mybatis/tr/HiddenDangerCheckPointMapper.xml b/src/main/resources/mybatis/tr/HiddenDangerCheckPointMapper.xml index 8b5c518..3d6550b 100644 --- a/src/main/resources/mybatis/tr/HiddenDangerCheckPointMapper.xml +++ b/src/main/resources/mybatis/tr/HiddenDangerCheckPointMapper.xml @@ -384,6 +384,7 @@ left join tr_hidden_danger_check c on c.check_id = a.check_id left join tr_troubleshoot_type b on c.troubleshoot_type_id = b.type_id </sql> + <!-- todo 查隐患台账--> <select id="selectHiddenDangerCheckPointListNewCount" parameterType="HiddenDangerCheckPoint" resultMap="HiddenDangerCheckPointResult"> @@ -418,6 +419,8 @@ </if> <if test="acceptStatus != null and acceptStatus != ''">and a.accept_status = #{acceptStatus}</if> <if test="dangerSources != null and dangerSources != ''">and a.danger_sources = #{dangerSources}</if> + <if test="dangerName != null and dangerName != ''">and a.danger_name like concat('%', #{dangerName}, '%') + </if> <!-- <if test="rectifyUserIdIsNotNull != null and rectifyUserIdIsNotNull != ''">and a.rectify_user_id is not null</if>--> -- Gitblit v1.9.2