From 648449c0dc1db4531889a4689d45f0a442032d3a Mon Sep 17 00:00:00 2001 From: 李宇 <986321569@qq.com> Date: 星期二, 26 十月 2021 17:05:35 +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