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}