From d5e8c950e8e01ae9141bb137943c9c818217e72b Mon Sep 17 00:00:00 2001 From: zangch Date: Tue, 3 Sep 2024 09:22:30 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20hw=5Felectronic=5Ffence=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E7=94=B1maxw=E5=8A=A0=E4=B8=8Adevice=5Fmode?= =?UTF-8?q?=5Fid=E5=92=8Cdevice=5Fid=EF=BC=8C=E8=BF=9E=E8=A1=A8=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=EF=BC=8C=E4=BF=AE=E6=94=B9=E7=9B=B8=E5=BA=94mapper?= =?UTF-8?q?=E5=92=8Cdo=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/domain/HwElectronicFence.java | 43 ++++++++++++- .../business/HwElectronicFenceMapper.xml | 62 +++++++++++++++---- 2 files changed, 92 insertions(+), 13 deletions(-) diff --git a/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/domain/HwElectronicFence.java b/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/domain/HwElectronicFence.java index b1b07ef..5ff816c 100644 --- a/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/domain/HwElectronicFence.java +++ b/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/domain/HwElectronicFence.java @@ -77,7 +77,44 @@ public class HwElectronicFence extends BaseEntity private String alarmInfoFlag;//是否有报警信息关联标识 - public void setElectronicFenceId(Long electronicFenceId) + private String deviceModeName; + private String deviceName; + private Long deviceModeId; + private Long deviceId; + + public String getDeviceModeName() { + return deviceModeName; + } + + public void setDeviceModeName(String deviceModeName) { + this.deviceModeName = deviceModeName; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public Long getDeviceModeId() { + return deviceModeId; + } + + public void setDeviceModeId(Long deviceModeId) { + this.deviceModeId = deviceModeId; + } + + public Long getDeviceId() { + return deviceId; + } + + public void setDeviceId(Long deviceId) { + this.deviceId = deviceId; + } + + public void setElectronicFenceId(Long electronicFenceId) { this.electronicFenceId = electronicFenceId; } @@ -259,6 +296,10 @@ public class HwElectronicFence extends BaseEntity .append("updateTime", getUpdateTime()) .append("fenceField", getFenceField()) .append("hwFenceTargetList", getHwFenceTargetList()) + .append("deviceModeName", getDeviceModeName()) + .append("deviceName", getDeviceName()) + .append("deviceModeId", getDeviceModeId()) + .append("deviceId", getDeviceId()) .toString(); } } diff --git a/ruoyi-modules/hw-business/src/main/resources/mapper/business/HwElectronicFenceMapper.xml b/ruoyi-modules/hw-business/src/main/resources/mapper/business/HwElectronicFenceMapper.xml index c1b064c..d633540 100644 --- a/ruoyi-modules/hw-business/src/main/resources/mapper/business/HwElectronicFenceMapper.xml +++ b/ruoyi-modules/hw-business/src/main/resources/mapper/business/HwElectronicFenceMapper.xml @@ -24,6 +24,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + + @@ -37,7 +41,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select electronic_fence_id, electronic_fence_name, tenant_id, scene_id, fence_type, effective_time_flag, time_zone, effective_time, trigger_status, fence_push_flag, fence_push_content, fence_recover_content, remark, create_by, create_time, update_by, update_time, fence_field from hw_electronic_fence + select hwf.electronic_fence_id, + hwf.electronic_fence_name, + hwf.tenant_id, + hwf.scene_id, + hwf.fence_type, + hwf.effective_time_flag, + hwf.time_zone, + hwf.effective_time, + hwf.trigger_status, + hwf.fence_push_flag, + hwf.fence_push_content, + hwf.fence_recover_content, + hwf.remark, + hwf.create_by, + hwf.create_time, + hwf.update_by, + hwf.update_time, + hwf.fence_field, + hdm.device_mode_name, + hd.device_name, + hwf.device_mode_id, + hwf.device_id + from hw_electronic_fence hwf + left join hw_device_model hdm on hdm.device_mode_id = hwf.device_mode_id + left join hw_device hd on hd.device_id = hwf.device_id @@ -87,6 +119,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update_by, update_time, fence_field, + device_mode_id, + device_id, #{electronicFenceName}, @@ -106,6 +140,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{updateBy}, #{updateTime}, #{fenceField}, + #{deviceModeId}, + #{deviceId}, @@ -129,6 +165,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update_by = #{updateBy}, update_time = #{updateTime}, fence_field = #{fenceField}, + device_mode_id = #{deviceModeId}, + device_id = #{deviceId}, where electronic_fence_id = #{electronicFenceId}