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/InsOrderUserMapper.xml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/inspect-server/src/main/resources/mapper/InsOrderUserMapper.xml b/inspect-server/src/main/resources/mapper/InsOrderUserMapper.xml
index 85237a3..3a7093a 100644
--- a/inspect-server/src/main/resources/mapper/InsOrderUserMapper.xml
+++ b/inspect-server/src/main/resources/mapper/InsOrderUserMapper.xml
@@ -66,6 +66,9 @@
                  left join ins_order_state ios on isa.id = ios.ins_sample_id
                  left join ins_order_user iou on ios.id = iou.ins_order_state_id
         where isa.ins_order_id=#{id}
+        <if test="sampleId != null">
+          and  isa.id=#{sampleId}
+        </if>
         order by isa.id,ios.laboratory
     </select>
 </mapper>

--
Gitblit v1.9.3