From fe97e3191aaa5f5db104541946f6ac7937e46e15 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 30 四月 2026 16:10:17 +0800
Subject: [PATCH] 人员考勤统计调整&原材料下单导出检验项详情

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

diff --git a/inspect-server/src/main/resources/mapper/InsProductMapper.xml b/inspect-server/src/main/resources/mapper/InsProductMapper.xml
index 5299c2b..5bc29db 100644
--- a/inspect-server/src/main/resources/mapper/InsProductMapper.xml
+++ b/inspect-server/src/main/resources/mapper/InsProductMapper.xml
@@ -172,4 +172,37 @@
         order by io.first_submit_date desc
         limit 10
     </select>
+    <select id="selectInspectListByIfsIfs" resultType="com.ruoyi.inspect.vo.ProductVo">
+        select
+            iiq.order_no,
+            iiq.update_batch_no,
+            iiq.part_no,
+            iiq.part_desc,
+            io.entrust_code ,
+            isa.sample_code,
+            ip.inspection_item,
+            ip.inspection_item_subclass,
+            ip.tell,
+            ip.`last_value`,
+            case
+               when ip.ins_result = 0 then '涓嶅悎鏍�'
+               when ip.ins_result = 1 then '鍚堟牸'
+               when ip.ins_result = 3 then '涓嶅垽瀹�'
+               else ''
+            end AS ins_result,
+            u.name,
+            ipr.create_time
+        from ifs_inventory_quantity iiq
+                 inner join ins_order io on iiq.id = io.ifs_inventory_id
+                 left join ins_sample isa on io.id = isa.ins_order_id
+                 left join ins_product ip on isa.id = ip.ins_sample_id
+                 inner join ins_product_result ipr on ip.id = ipr.ins_product_id
+                 left join user u on ipr.create_user = u.id
+        WHERE
+            iiq.id in
+            <foreach collection="ifsIds" item="ifsId" separator="," open="(" close=")">
+                #{ifsId}
+            </foreach>
+            AND ip.state = 1
+    </select>
 </mapper>

--
Gitblit v1.9.3