From 728576cac67b5da2534ba576febab744ff6af64a Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 28 八月 2024 10:36:12 +0800
Subject: [PATCH] 取消python任务
---
ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml
index 0702c36..3578040 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml
@@ -109,15 +109,18 @@
</delete>
<update id="updatePoint">
- update t_yw_point
- <set>
- <if test="point.pointName != null and point.pointName != ''">point_name = #{point.pointName},</if>
+ <foreach collection="pointList" separator=";" item="point">
+ UPDATE t_yw_point
+ SET
+ <if test="point.pointName != null and point.pointName != ''">
+ point_name = #{point.pointName},
+ </if>
unit_id = #{point.unitId},
start_time = #{point.startTime},
end_time = #{point.endTime},
province_tag = #{point.provinceTag},
- important_command_image_tag = #{point.importantCommandImageTag},
- </set>
+ important_command_image_tag = #{point.importantCommandImageTag}
WHERE serial_number = #{point.serialNumber}
+ </foreach>
</update>
</mapper>
--
Gitblit v1.8.0