From 9941608207c23f184a9889135ec64107817bf7a1 Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Sat, 27 Sep 2025 21:10:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=99=E5=85=A5=E7=AC=AC=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E7=9A=84=E5=88=AB=E5=90=8D=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/gb28181/dao/GroupMapper.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/GroupMapper.java b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/GroupMapper.java index 7d6bb48fc..3d18690cf 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/GroupMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/GroupMapper.java @@ -12,13 +12,13 @@ import java.util.Set; @Mapper public interface GroupMapper { - @Insert("INSERT INTO wvp_common_group (device_id, name, parent_id, parent_device_id, business_group, create_time, update_time, civil_code) " + - "VALUES (#{deviceId}, #{name}, #{parentId}, #{parentDeviceId}, #{businessGroup}, #{createTime}, #{updateTime}, #{civilCode})") + @Insert("INSERT INTO wvp_common_group (device_id, name, parent_id, parent_device_id, business_group, create_time, update_time, civil_code, alias) " + + "VALUES (#{deviceId}, #{name}, #{parentId}, #{parentDeviceId}, #{businessGroup}, #{createTime}, #{updateTime}, #{civilCode}, #{alias})") @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id") int add(Group group); - @Insert("INSERT INTO wvp_common_group (device_id, name, business_group, create_time, update_time, civil_code) " + - "VALUES (#{deviceId}, #{name}, #{businessGroup}, #{createTime}, #{updateTime}, #{civilCode})") + @Insert("INSERT INTO wvp_common_group (device_id, name, business_group, create_time, update_time, civil_code, alias) " + + "VALUES (#{deviceId}, #{name}, #{businessGroup}, #{createTime}, #{updateTime}, #{civilCode}, #{alias})") @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id") int addBusinessGroup(Group group); @@ -27,7 +27,8 @@ public interface GroupMapper { @Update(" UPDATE wvp_common_group " + " SET update_time=#{updateTime}, device_id=#{deviceId}, name=#{name}, parent_id=#{parentId}, " + - " parent_device_id=#{parentDeviceId}, business_group=#{businessGroup}, civil_code=#{civilCode}" + + " parent_device_id=#{parentDeviceId}, business_group=#{businessGroup}, civil_code=#{civilCode}, " + + " alias=#{alias}" + " WHERE id = #{id}") int update(Group group); @@ -55,10 +56,12 @@ public interface GroupMapper { " business_group," + " create_time," + " civil_code," + + " alias," + " update_time) " + " VALUES " + " " + - " (#{item.deviceId}, #{item.name}, #{item.parentDeviceId}, #{item.parentId}, #{item.businessGroup},#{item.createTime},#{item.civilCode},#{item.updateTime})" + + " (#{item.deviceId}, #{item.name}, #{item.parentDeviceId}, #{item.parentId}, #{item.businessGroup}," + + "#{item.createTime},#{item.civilCode},#{item.alias},#{item.updateTime})" + " " + " ") @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")