From 75b2904fbaf4fab6a9fb3baf065d2c927cc7a7a2 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 27 九月 2023 18:16:34 +0800
Subject: [PATCH] 基础数据-物料清单维护-导出

---
 standard-server/src/main/resources/mapper/TechnologyMapper.xml |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/standard-server/src/main/resources/mapper/TechnologyMapper.xml b/standard-server/src/main/resources/mapper/TechnologyMapper.xml
index c01980b..ae9d8b8 100644
--- a/standard-server/src/main/resources/mapper/TechnologyMapper.xml
+++ b/standard-server/src/main/resources/mapper/TechnologyMapper.xml
@@ -12,7 +12,7 @@
 
     <!--鍙充晶鏁版嵁灞曠ず 宸ヨ壓璺嚎-->
     <resultMap id="selectAllTecMap" type="map">
-        <id property="name" column="father"/>
+        <id property="father" column="father"/>
         <collection property="children" resultMap="selectAllTecMaps" javaType="List"/>
     </resultMap>
     <resultMap id="selectAllTecMaps" type="map">
@@ -32,7 +32,7 @@
         and specifications_id = #{specificationsId}
         and version = #{version}
         <if test="message!=null and message!=''">
-            and father like concat('%',#{message},'%')
+            and name like concat('%',#{message},'%')
         </if>
     </select>
 
@@ -42,6 +42,7 @@
         from mom_ocean.technology
         where state = 1
           and specifications_id = #{specificationsId}
+          and version = #{version}
     </select>
 
     <!--鍙充笂瑙掓柊澧�-鎶�鏈寚鏍�-閫夋嫨宸ュ簭,宸ヨ壓-->
@@ -60,6 +61,7 @@
         from mom_ocean.technology
         where state = 1
           and specifications_id = #{specificationsId}
+          and version = #{version}
     </select>
     <!--鏌ヨ璇ュ瀷鍙峰伐鑹轰笅鏈�鏂扮増鏈殑宸ヨ壓id-->
     <select id="selTech" resultType="java.lang.Integer">
@@ -72,6 +74,15 @@
           and version = #{version}
     </select>
 
+    <!--鏌ヨ璇ュ瀷鍙蜂笅鐗堟湰涓嬬殑鎵�鏈夋暟鎹�-->
+    <select id="selAllByVerSpId" resultType="com.yuanchu.mom.pojo.Technology">
+        select *
+        from mom_ocean.technology
+        where state = 1
+          and specifications_id = #{spId}
+          and version = #{ver}
+    </select>
+
     <!--鎵归噺鍒犻櫎-->
     <update id="delAllTech">
         update mom_ocean.technology

--
Gitblit v1.9.3