From 08cad817f057c4a10e1ea59e362fbb492f3381df Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期三, 22 五月 2024 16:14:35 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 inspect-server/src/main/resources/mapper/StandardTreeMapper.xml |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml b/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml
index bdb8cfd..ce4a5cc 100644
--- a/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml
+++ b/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml
@@ -59,7 +59,7 @@
                  left join standard_tree st on st.laboratory = l.laboratory_name
             and st.sample_type = sto.specimen_name
             and st.sample = p.name
-        order by l.id,CAST(sto.code AS DECIMAL),st.id
+        order by l.id,CAST(sto.code AS DECIMAL),p.id,ISNULL(st.id),st.id
     </select>
 
     <select id="selectStandardProductById" resultType="com.yuanchu.mom.pojo.StandardProductList">
@@ -157,7 +157,8 @@
                0 state,
                #{model} model,
                #{sample} sample,
-               #{trees} tree
+               #{trees} tree,
+               id structure_item_parameter_id
         from structure_item_parameter
         where (
                       sample is NULL
@@ -193,7 +194,8 @@
                0 state,
                #{model} model,
                #{sample} sample,
-               #{trees} tree
+               #{trees} tree,
+               id structure_item_parameter_id
         from structure_item_parameter
         where sample LIKE CONCAT('%[', #{tree}, ']%')
     </select>
@@ -233,7 +235,8 @@
                0 state,
                #{model} model,
                #{sample} sample,
-               #{trees} tree
+               #{trees} tree,
+               id structure_item_parameter_id
         from structure_item_parameter
         where (
                       sample is NULL

--
Gitblit v1.9.3