From 68f6642d4d1fff10c6bd898d69dd7bff27adbc16 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期日, 24 九月 2023 15:18:29 +0800
Subject: [PATCH] 修改2.0 9.24
---
base-server/src/main/resources/mapper/TechnicalModelMapper.xml | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/base-server/src/main/resources/mapper/TechnicalModelMapper.xml b/base-server/src/main/resources/mapper/TechnicalModelMapper.xml
index 62485d2..731903d 100644
--- a/base-server/src/main/resources/mapper/TechnicalModelMapper.xml
+++ b/base-server/src/main/resources/mapper/TechnicalModelMapper.xml
@@ -30,7 +30,7 @@
<resultMap id="selectAllTechNamTowMap" type="map">
<id property="id" column="id"/>
<result property="name" column="name"/>
- <result property="name" column="unit"/>
+ <result property="unit" column="unit"/>
</resultMap>
<select id="selectAllTechNam" resultMap="selectAllTechNamMap">
select id,
@@ -52,7 +52,7 @@
<result property="name" column="techName"/>
</resultMap>
<select id="chooseTechFath" resultMap="chooseTechFathMap">
- select id techTemId,
+ select id techTemId,
name techName,
father techFather
from mom_ocean.technology_template
@@ -73,6 +73,7 @@
select technical_model.father,
technical_model.name,
unit,
+ technology_template.id,
technology_template.name techName,
technology_template.father techFather,
type
@@ -93,8 +94,8 @@
<!--鍒犻櫎鏍规嵁宸ヨ壓璺嚎id-->
<update id="delTeMoByTechId">
update mom_ocean.technical_model
- set state=0
- where tech_tem_id=#{id}
+ set state=0
+ where tech_tem_id = #{id}
</update>
<!--鎵归噺鍒犻櫎鏍规嵁宸ヨ壓璺嚎id-->
--
Gitblit v1.9.3