|
|
@ -28,6 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="facilitiesType" column="facilities_type"/> |
|
|
|
<result property="deviceIp" column="device_ip"/> |
|
|
|
<result property="stakeMarkRange" column="stake_mark_range"/> |
|
|
|
<result property="networkSegment" column="network_segment"/> |
|
|
|
<result property="deviceImg" column="device_img"/> |
|
|
|
<result property="longitude" column="longitude"/> |
|
|
|
<result property="latitude" column="latitude"/> |
|
|
@ -64,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
facilities_type, |
|
|
|
device_ip, |
|
|
|
stake_mark_range, |
|
|
|
network_segment, |
|
|
|
device_img, |
|
|
|
child_type |
|
|
|
from dc_device |
|
|
@ -73,7 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<select id="selectDcDeviceList" parameterType="dcDevice" resultMap="DcDevice"> |
|
|
|
select t1.id, t1.iot_device_id, t1.group_id, t1.product_id, t1.stake_mark, t1.direction, t1.device_name, t1.device_code, t1.device_type, |
|
|
|
t1.installation_Date,t1.production_date,t1.durable_years,t1.installation_site,t1.use_state,t1.device_state,t1.other_config,t1.remark, |
|
|
|
t1.create_time,t1.update_time,t1.facilities_type,t1.device_ip,t1.stake_mark_range,t1.device_img,t1.child_type, |
|
|
|
t1.create_time,t1.update_time,t1.facilities_type,t1.device_ip,t1.stake_mark_range,t1.network_segment,t1.device_img,t1.child_type, |
|
|
|
t1.facilities_type,t2.longitude,t2.latitude,t3.manufacturer |
|
|
|
from dc_device t1 |
|
|
|
left join dc_stake_mark t2 on t1.stake_mark = t2.stake_mark and t1.direction = t2.direction |
|
|
@ -101,6 +103,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="facilitiesType != null and facilitiesType != ''">and t1.facilities_type = #{facilitiesType}</if> |
|
|
|
<if test="deviceIp != null and deviceIp != ''">and t1.device_ip = #{deviceIp}</if> |
|
|
|
<if test="stakeMarkRange != null and stakeMarkRange != ''">and t1.stake_mark_range = #{stakeMarkRange}</if> |
|
|
|
<if test="networkSegment != null and networkSegment != ''">and t1.network_segment = #{networkSegment}</if> |
|
|
|
<if test="deviceImg != null and deviceImg != ''">and t1.device_img = #{deviceImg}</if> |
|
|
|
<if test="childType != null and childType != ''">and t1.child_type = #{childType}</if> |
|
|
|
</where> |
|
|
@ -122,7 +125,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
select t1.id, t1.iot_device_id, t1.group_id, t1.product_id, t1.stake_mark, t1.direction, t1.device_name, |
|
|
|
t1.device_code, t1.device_type,t1.installation_Date,t1.production_date,t1.durable_years,t1.installation_site, |
|
|
|
t1.use_state,t1.device_state,t1.other_config,t1.remark,t1.create_time,t1.update_time,t1.facilities_type, |
|
|
|
t1.device_ip,t1.stake_mark_range,t1.device_img,t1.child_type,t1.facilities_type,t2.longitude,t2.latitude |
|
|
|
t1.device_ip,t1.stake_mark_range,t1.network_segment,t1.device_img,t1.child_type,t1.facilities_type,t2.longitude,t2.latitude |
|
|
|
from dc_device t1 |
|
|
|
left join dc_stake_mark t2 on t1.stake_mark = t2.stake_mark and t1.direction = t2.direction |
|
|
|
where !ISNULL(t1.iot_device_id) and t1.device_type = '1' and t1.direction = #{direction} |
|
|
@ -132,7 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
select t1.id, t1.iot_device_id, t1.group_id, t1.product_id, t1.stake_mark, t1.direction, t1.device_name, |
|
|
|
t1.device_code, t1.device_type,t1.installation_Date,t1.production_date,t1.durable_years,t1.installation_site, |
|
|
|
t1.use_state,t1.device_state,t1.other_config,t1.remark,t1.create_time,t1.update_time,t1.facilities_type, |
|
|
|
t1.device_ip,t1.stake_mark_range,t1.device_img,t1.child_type,t1.facilities_type,t2.longitude,t2.latitude |
|
|
|
t1.device_ip,t1.stake_mark_range,t1.network_segment,t1.device_img,t1.child_type,t1.facilities_type,t2.longitude,t2.latitude |
|
|
|
from dc_device t1 |
|
|
|
left join dc_stake_mark t2 on t1.stake_mark = t2.stake_mark and t1.direction = t2.direction |
|
|
|
where t1.device_type = '2' and t1.direction = #{direction} |
|
|
|