From a1e90c3da21d88f994bac9c1feb91bf40e53a44d Mon Sep 17 00:00:00 2001 From: 李宇 <986321569@qq.com> Date: 星期三, 18 八月 2021 13:01:21 +0800 Subject: [PATCH] 耗材无供应商也显示,申购管理试剂库、申请履历、收藏不显示无效试剂和无供应商试剂 可显示无供应商的耗材 --- src/main/java/com/nanometer/smartlab/dao/DangerousEncodeMapper.xml | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/nanometer/smartlab/dao/DangerousEncodeMapper.xml b/src/main/java/com/nanometer/smartlab/dao/DangerousEncodeMapper.xml index 703c10a..d6f2d9c 100644 --- a/src/main/java/com/nanometer/smartlab/dao/DangerousEncodeMapper.xml +++ b/src/main/java/com/nanometer/smartlab/dao/DangerousEncodeMapper.xml @@ -310,7 +310,7 @@ and reagent_name = #{reagentname} </if> <if test="cas != null and cas != ''"> - and cas = #{cas} + and cas like concat("%",#{cas},"%") </if> <if test="code != null and code != ''"> and code = #{code} @@ -328,7 +328,7 @@ and reagent_name like concat("%",#{reagentname},"%") </if> <if test="cas != null and cas != ''"> - and cas = #{cas} + and cas like concat("%",#{cas},"%") </if> </where> </select> @@ -344,4 +344,10 @@ </if> </where> </select> + <select id="selectById" resultType="com.nanometer.smartlab.entity.DangerousEncode"> + select + <include refid="Base_Column_List" /> + from sys_dangerous_encode + where id = #{id} + </select> </mapper> -- Gitblit v1.9.2