From 20ad0135fc465913b4f5b7c2c0e61a572f382a9c Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期日, 28 九月 2025 16:24:43 +0800
Subject: [PATCH] 标准树结构去掉中天科技检测中心

---
 basic-server/src/main/resources/mapper/StandardTreeMapper.xml |   57 +++++++++++++++++++++++++++++++++++++--------------------
 1 files changed, 37 insertions(+), 20 deletions(-)

diff --git a/basic-server/src/main/resources/mapper/StandardTreeMapper.xml b/basic-server/src/main/resources/mapper/StandardTreeMapper.xml
index 74ded82..73e3095 100644
--- a/basic-server/src/main/resources/mapper/StandardTreeMapper.xml
+++ b/basic-server/src/main/resources/mapper/StandardTreeMapper.xml
@@ -90,7 +90,7 @@
     </sql>
 
     <select id="selectStandardTreeList" resultMap="FactoryDto">
-        select '涓ぉ绉戞妧妫�娴嬩腑蹇�'        factory,
+        select '宸ュ巶'        factory,
                l.laboratory_name laboratory,
                sto.specimen_name sample_type,
                p.name            sample,
@@ -154,17 +154,9 @@
            or sp.sample = ''
            or sp.sample = '[]'
     </select>
-    <select id="getStandardMethodListBySample" resultType="com.ruoyi.basic.pojo.StandardMethodList">
-        select sm.code,sm.name,sm.remark from standard_method sm
-        left join structure_test_object sto on sm.structure_test_object_id = sto.id
-        where is_use = 1
-        and is_product = 1
-        <if test="sampleType != null">
-            and sto.specimen_name = #{sampleType}
-        </if>
-    </select>
+
     <select id="selectStandardTreeList2" resultType="com.ruoyi.basic.pojo.StandardTree">
-        select '涓ぉ绉戞妧妫�娴嬩腑蹇�'        factory,
+        select '宸ュ巶'        factory,
                l.laboratory_name laboratory,
                sto.specimen_name sample_type,
                p.name            sample
@@ -212,14 +204,6 @@
             and st.sample = p.name
     </select>
 
-    <select id="getStandardTree3" resultType="com.ruoyi.basic.dto.SampleDto">
-        select model label,
-               model value
-        from standard_tree
-        where sample_type = #{sampleType}
-          and sample is null
-    </select>
-
     <select id="getLaboratory" resultType="java.lang.String">
         select l.laboratory_name
         from structure_test_object sto
@@ -253,7 +237,7 @@
         where name = #{name}
     </select>
     <select id="selectStandardTreeListByPartNo" resultMap="FactoryDto">
-        select '涓ぉ绉戞妧妫�娴嬩腑蹇�' factory,
+        select '宸ュ巶' factory,
                l.laboratory_name  laboratory,
                sto.specimen_name  sample_type,
                p.name             sample,
@@ -330,6 +314,7 @@
         <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
             ${ew.customSqlSegment}
         </if>
+        order by send_time desc
     </select>
 
     <select id="selectIfsPage" resultType="com.ruoyi.basic.pojo.IfsInventoryQuantity">
@@ -337,6 +322,7 @@
         <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
             ${ew.customSqlSegment}
         </if>
+        ORDER BY declare_date DESC
     </select>
     <select id="selectIfsInventoryQuantity" resultType="com.ruoyi.basic.dto.IfsInventoryQuantityCheckDto">
         SELECT * from ifs_inventory_quantity ifs
@@ -355,6 +341,7 @@
         <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
             ${ew.customSqlSegment}
         </if>
+        order by send_time desc
     </select>
     <select id="getIfsByOverList" resultType="com.ruoyi.basic.dto.IfsInventoryQuantitySupplierDto">
         select * from (<include refid="getIfsOrder"/>
@@ -381,4 +368,34 @@
             ${ew.customSqlSegment}
         </if>
     </select>
+
+    <select id="getStandardTree3Batch" resultType="com.ruoyi.basic.dto.SampleDto">
+        select model label,
+               model value
+        from standard_tree
+        where sample is null
+        <if test="sampleTypeValues != null and sampleTypeValues.size() > 0">
+            and sample_type in
+            <foreach item="item" collection="sampleTypeValues" open="(" separator="," close=")">
+                #{item}
+            </foreach>
+        </if>
+    </select>
+
+    <select id="getStandardTree3" resultType="com.ruoyi.basic.dto.SampleDto">
+        select model label,
+               model value
+        from standard_tree
+        where sample_type = #{sampleType}
+          and sample is null
+    </select>
+
+    <!-- 鏍规嵁鍘熸潗鏂檌d鍒楄〃鏌ヨ鍘熸潗鏂欎俊鎭� -->
+    <select id="getIfsByIds" resultType="com.ruoyi.basic.dto.IfsInventoryQuantitySupplierDto">
+        <include refid="getIfsOrder"/>
+        where id in
+        <foreach item="id" collection="ifsIds" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </select>
 </mapper>

--
Gitblit v1.9.3