From 3034fcaba0301ed1f200e9c388417360422478b6 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 19 四月 2024 14:30:55 +0800
Subject: [PATCH] 数据字典添加类型+检验项目的要求值逻辑+资质bug修改

---
 inspect-server/src/main/resources/mapper/InsSampleMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
index 5045af2..f5822aa 100644
--- a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
+++ b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml
@@ -51,12 +51,12 @@
         io.state = 1
         AND io.ins_state != 5
         and send_time is not null
+        and (isu.user_id = #{userId} OR isu.user_id is NULL)
         GROUP BY
         ip.son_laboratory,
         io.id
         ) a
         LEFT JOIN ins_order_state ios ON ios.ins_order_id = a.id AND ios.laboratory = a.son_laboratory
-        where a.user_id = #{userId} OR a.user_id is NULL
         ORDER BY
         a.user_id DESC,
         a.type DESC,

--
Gitblit v1.9.3