From 110cf37e66ad349e205890c0d5965ccc5fffd140 Mon Sep 17 00:00:00 2001
From: XiaoRuby <3114200645@qq.com>
Date: 星期五, 18 八月 2023 17:27:26 +0800
Subject: [PATCH] MOM系统-8-18计量管理版本一修改

---
 standard-server/src/main/resources/mapper/RawInsProductMapper.xml |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/standard-server/src/main/resources/mapper/RawInsProductMapper.xml b/standard-server/src/main/resources/mapper/RawInsProductMapper.xml
index 5f7d431..94f8892 100644
--- a/standard-server/src/main/resources/mapper/RawInsProductMapper.xml
+++ b/standard-server/src/main/resources/mapper/RawInsProductMapper.xml
@@ -15,4 +15,20 @@
     <select id="selectPageDevice" resultType="map">
 
     </select>
+
+    <select id="inspectIdSelect" resultType="map">
+        SELECT r.`name`, r.`specifications`, r.`user_name`
+        FROM raw_inspect r, raw_ins_product p
+        WHERE p.`id` = #{inspectId}
+          AND p.`state` = 1
+          AND r.`state` = 1
+          AND r.`id` = p.`raw_inspect_id`
+    </select>
+
+    <select id="parentClassification" resultType="map">
+        SELECT DISTINCT d.`father`
+        FROM device d
+        WHERE d.`state` = 1
+          AND d.`father` IS NOT NULL
+    </select>
 </mapper>

--
Gitblit v1.9.3