From 1d9f79e7853d8d9b51c35817a5466db5a1a0b7e3 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 17 十二月 2025 09:55:43 +0800
Subject: [PATCH] 订单拆分生成系统编号逻辑调整3

---
 basic-server/src/main/resources/mapper/StandardTreeMapper.xml |   27 ++++++++++++++-------------
 1 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/basic-server/src/main/resources/mapper/StandardTreeMapper.xml b/basic-server/src/main/resources/mapper/StandardTreeMapper.xml
index a011e82..aca179c 100644
--- a/basic-server/src/main/resources/mapper/StandardTreeMapper.xml
+++ b/basic-server/src/main/resources/mapper/StandardTreeMapper.xml
@@ -154,15 +154,7 @@
            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,
                l.laboratory_name laboratory,
@@ -325,7 +317,7 @@
         order by send_time desc
     </select>
 
-    <select id="selectIfsPage" resultType="com.ruoyi.basic.pojo.IfsInventoryQuantity">
+    <select id="selectIfsPage" resultType="com.ruoyi.basic.vo.IfsInventoryQuantityVO">
         SELECT * from ifs_inventory_quantity ifs
         <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
             ${ew.customSqlSegment}
@@ -342,7 +334,7 @@
         select * from (<include refid="getIfsOrder"/>
         <where>
             <if test="beginDeclareDate != null and beginDeclareDate != '' and endDeclareDate != null and endDeclareDate != ''">
-                send_time between #{beginDeclareDate} and #{endDeclareDate}
+                declare_date between #{beginDeclareDate} and #{endDeclareDate}
             </if>
         </where>
         ) a
@@ -355,7 +347,7 @@
         select * from (<include refid="getIfsOrder"/>
             <where>
                 <if test="beginDeclareDate != null and beginDeclareDate != '' and endDeclareDate != null and endDeclareDate != ''">
-                    send_time between #{beginDeclareDate} and #{endDeclareDate}
+                    declare_date between #{beginDeclareDate} and #{endDeclareDate}
                 </if>
             </where>
         ) a
@@ -368,7 +360,7 @@
         <where>
             and (quarter_order_id is not null)
             <if test="beginDeclareDate != null and beginDeclareDate != '' and endDeclareDate != null and endDeclareDate != ''">
-                and  send_time between #{beginDeclareDate} and #{endDeclareDate}
+                and  declare_date between #{beginDeclareDate} and #{endDeclareDate}
             </if>
         </where>
         ) a
@@ -397,4 +389,13 @@
         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