From e2c5017787d7fc5eea2afb8bc84bca0db054ad8c Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期三, 09 四月 2025 17:46:36 +0800
Subject: [PATCH] Merge branch 'radio_frequency' of http://114.132.189.42:9002/r/lims-ruoyi-after into radio_frequency

---
 basic-server/src/main/resources/mapper/ProductPartMapper.xml |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/basic-server/src/main/resources/mapper/ProductPartMapper.xml b/basic-server/src/main/resources/mapper/ProductPartMapper.xml
index f883d3c..43e645a 100644
--- a/basic-server/src/main/resources/mapper/ProductPartMapper.xml
+++ b/basic-server/src/main/resources/mapper/ProductPartMapper.xml
@@ -7,4 +7,30 @@
         SELECT * from product_part pp
         where  pp.product_id=#{productId}
     </select>
+    <select id="inspectionItems" resultType="java.util.Map">
+        SELECT DISTINCT
+        sp.inspection_item AS inspectionItem
+        FROM
+        structure_item_parameter sp
+        WHERE 1=1
+        <if test="name != null and name != ''">
+            AND JSON_CONTAINS(sp.sample, concat('"', #{name}, '"'))
+        </if>
+        AND sp.son_laboratory = '鍘熸潗鏂�'
+    </select>
+    <select id="productPartLogList" resultType="java.util.Map">
+        SELECT
+            pp.part_no AS partNo,
+            pp.color,
+            pp.color_code AS colorCode,
+            pp.inspection_item AS inspectionItem,
+            pp.review,
+            pl.oper_name AS operName,
+            pl.oper_time AS operTime
+        FROM
+            product_part pp
+                LEFT JOIN product_part_log pl ON pp.id = pl.product_part_id
+        WHERE
+            pp.id = #{id}
+    </select>
 </mapper>

--
Gitblit v1.9.3