From 0ed3d6d60ece4effae6072556165a0aad9fe8f9f Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期五, 15 八月 2025 13:21:43 +0800 Subject: [PATCH] 如果其他检验不检也可以生成报告结束试验跳过 --- inspect-server/src/main/resources/mapper/InsSampleMapper.xml | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml index f9bc603..df4a6f0 100644 --- a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml +++ b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml @@ -54,7 +54,7 @@ io.send_time, isa.id sampleId, isa.sample sample, - isa.sample_code sampleCode, + isa.sample_code , userName, userNameId, checkName, @@ -81,9 +81,12 @@ ORDER BY ins_sample_id )isu2 ON isu2.ins_sample_id = isa.id WHERE io.state = 1 and send_time is not null - <if test="userName !=null and userName!=''"> - and ( (userName like CONCAT ('%', #{userName},'%') ) - or (checkName like CONCAT ('%', #{userName},'%') ) ) + <if test="sampleCode !=null and sampleCode!=''"> + and (isa.sample_code like CONCAT ('%', #{sampleCode},'%') ) + </if> + <if test="myName !=null and myName!=''"> + and ( (userName like CONCAT ('%', #{myName},'%') ) + or (checkName like CONCAT ('%', #{myName},'%') ) ) </if> ) a ON ios.ins_order_id = a.id AND ios.laboratory = #{sonLaboratory} and ios.ins_sample_id=a.sampleId -- Gitblit v1.9.3