From 40b263fb22d260e5d3afffcb6009eabd935aef03 Mon Sep 17 00:00:00 2001
From: 16639036659 <577530412@qq.com>
Date: 星期四, 13 七月 2023 09:49:25 +0800
Subject: [PATCH] 临时提交

---
 src/main/resources/mybatis/doublePrevention/PreventOverhaulMapper.xml |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/main/resources/mybatis/doublePrevention/PreventOverhaulMapper.xml b/src/main/resources/mybatis/doublePrevention/PreventOverhaulMapper.xml
index 8623e7d..ba65ea3 100644
--- a/src/main/resources/mybatis/doublePrevention/PreventOverhaulMapper.xml
+++ b/src/main/resources/mybatis/doublePrevention/PreventOverhaulMapper.xml
@@ -101,14 +101,16 @@
     <update id="updateOverhaulLog" parameterType="com.ruoyi.doublePrevention.entity.PreventOverhaulLog">
         update prevent_overhaul_log
         <trim prefix="SET" suffixOverrides=",">
-            <if test="hazardCode != null  and hazardCode != ''">hazard_code = #{updateReqBO.id},</if>
-            <if test="riskUnitId != null ">risk_unit_id = #{updateReqBO.riskUnitId},</if>
-            <if test="riskUnitUuid != null  and riskUnitUuid != ''">risk_unit_uuid = #{updateReqBO.riskUnitUuid},</if>
-            <if test="stopStartTime != null ">stop_start_time = #{updateReqBO.stopStartTime},</if>
-            <if test="stopEndTime != null ">stop_end_time = #{updateReqBO.stopEndTime},</if>
-            <if test="stopReason != null  and stopReason != ''">stop_reason = #{updateReqBO.stopReason},</if>
+            <if test="preventOverhaulLog.hazardCode != null  and preventOverhaulLog.hazardCode != ''">hazard_code = #{preventOverhaulLog.id},</if>
+            <if test="preventOverhaulLog.riskUnitId != null ">risk_unit_id = #{preventOverhaulLog.riskUnitId},</if>
+            <if test="preventOverhaulLog.riskUnitUuid != null  and preventOverhaulLog.riskUnitUuid != ''">risk_unit_uuid = #{preventOverhaulLog.riskUnitUuid},</if>
+            <if test="preventOverhaulLog.stopStartTime != null ">stop_start_time = #{preventOverhaulLog.stopStartTime},</if>
+            <if test="preventOverhaulLog.stopEndTime != null ">stop_end_time = #{preventOverhaulLog.stopEndTime},</if>
+            <if test="preventOverhaulLog.stopReason != null  and preventOverhaulLog.stopReason != ''">stop_reason = #{preventOverhaulLog.stopReason},</if>
+            <if test="preventOverhaulLog.gmtModitify != null ">gmt_moditify = #{preventOverhaulLog.gmtModitify},</if>
+            <if test="preventOverhaulLog.lastEditUserName != null  and preventOverhaulLog.lastEditUserName != ''">last_edit_user_name = #{preventOverhaulLog.lastEditUserName},</if>
         </trim>
-        where id = #{updateReqBO.id}
+        where id = #{preventOverhaulLog.id}
     </update>
 
 <!--    int deleteOverhaulLogByIds(String[] ids);-->

--
Gitblit v1.9.2