From 0ff7a8f69570b3fc7418c35f3d6e273ef4f73f20 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 26 七月 2024 10:35:10 +0800
Subject: [PATCH] 代码提交

---
 smartor/src/main/resources/mapper/smartor/ServiceThirdDataMapper.xml |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/ServiceThirdDataMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceThirdDataMapper.xml
index 4ec08a6..d2518d2 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceThirdDataMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceThirdDataMapper.xml
@@ -12,10 +12,19 @@
         <result property="factory" column="factory"/>
         <result property="createTime" column="create_time"/>
         <result property="isDeal" column="is_deal"/>
+        <result property="userInfoId" column="user_info_id"/>
     </resultMap>
 
     <sql id="selectServiceThirdDataVo">
-        select id, data_type, data_type_explain, data_info, factory, create_time, is_deal
+        select id,
+               data_type,
+               data_type_explain,
+               data_info,
+               factory,
+               create_time,
+               is_deal,
+               user_info_id,
+               remark
         from service_third_data
     </sql>
 
@@ -93,10 +102,14 @@
     </insert>
 
 
-    <update id="updateIsDeal" parameterType="long">
+    <update id="updateIsDeal" parameterType="com.smartor.domain.ServiceThirdData">
         update service_third_data
         <trim prefix="SET" suffixOverrides=",">
-            is_deal=1
+            is_deal=1,
+            <if test="userInfoId != null">
+                user_info_id=#{userInfoId}
+            </if>
+            <if test="remark != null  and remark != ''">remark = #{remark}</if>
         </trim>
         where id = #{id}
     </update>

--
Gitblit v1.9.3