From cbf4b74927fe51c19c307d89b326ae999cb6a165 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期二, 12 九月 2023 17:50:25 +0800
Subject: [PATCH] 修改 9.12
---
standard-server/src/main/resources/mapper/TechniqueMapper.xml | 50 +++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 49 insertions(+), 1 deletions(-)
diff --git a/standard-server/src/main/resources/mapper/TechniqueMapper.xml b/standard-server/src/main/resources/mapper/TechniqueMapper.xml
index 8f15432..e6c0e9c 100644
--- a/standard-server/src/main/resources/mapper/TechniqueMapper.xml
+++ b/standard-server/src/main/resources/mapper/TechniqueMapper.xml
@@ -23,9 +23,15 @@
<collection property="children" resultMap="threeMap" javaType="List"/>
</resultMap>
<resultMap id="threeMap" type="map">
- <id property="tqid" column="tqid"/>
<result property="device" column="device"/>
+ <collection property="children" resultMap="fourMap" javaType="List"/>
+ </resultMap>
+ <resultMap id="fourMap" type="map">
<result property="productFather" column="product_father"/>
+ <collection property="children" resultMap="fiveMap" javaType="List"/>
+ </resultMap>
+ <resultMap id="fiveMap" type="map">
+ <id property="tqid" column="tqid"/>
<result property="product" column="product"/>
<result property="unit" column="unit"/>
</resultMap>
@@ -88,6 +94,48 @@
where technology.state = 1
and specifications_id = #{specificationsId})
</select>
+ <!--鏍规嵁宸ヨ壓璺嚎id鏌ヨ鎵�鏈夌増鏈�-->
+ <select id="selectVerByTeId" resultType="java.lang.Integer">
+ select distinct version
+ from mom_ocean.technique
+ where state = 1
+ and technology_id = #{technologyId}
+ </select>
+
+ <!--鏌ヨ璇ュ伐鑹轰笅鏈�鏂扮増鏈湪涓�涓楠岄」鐩笅鍙互浣跨敤鍝簺璁惧-->
+ <select id="selDevByVerTecIdFaNam" resultType="java.util.Map">
+ select device.id, device
+ from mom_ocean.technique
+ left join mom_ocean.device on name = device
+ where technique.state = 1
+ and technology_id = #{technologyId}
+ and product_father = #{father}
+ and product = #{name}
+ and version = #{ver}
+ </select>
+
+ <!--鏍规嵁id鏌ョ湅璇︽儏-->
+ <select id="selTeqById" resultType="java.util.Map">
+ select m.father,
+ type,
+ m.name,
+ st.name,
+ sp.name,
+ t.father,
+ t.name,
+ technology_id,
+ device,
+ product_father,
+ product,
+ unit
+ from mom_ocean.technique tq
+ left join mom_ocean.technology t on tq.technology_id = t.id
+ left join mom_ocean.specifications sp on t.specifications_id = sp.id
+ left join mom_ocean.standard st on sp.standard_id = st.id
+ left join mom_ocean.material m on st.material_id = m.id
+ where tq.state = 1
+ and tq.id = #{id}
+ </select>
<!--鏍规嵁宸ヨ壓璺嚎id鍒犻櫎鐢熶骇宸ヨ壓-->
<update id="delTeqByTecId">
--
Gitblit v1.9.3