|
@ -20,6 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="durableYears" column="durable_years"/> |
|
|
<result property="durableYears" column="durable_years"/> |
|
|
<result property="installationSite" column="installation_site"/> |
|
|
<result property="installationSite" column="installation_site"/> |
|
|
<result property="useState" column="use_state"/> |
|
|
<result property="useState" column="use_state"/> |
|
|
|
|
|
<result property="deviceState" column="device_state"/> |
|
|
<result property="otherConfig" column="other_config"/> |
|
|
<result property="otherConfig" column="other_config"/> |
|
|
<result property="remark" column="remark"/> |
|
|
<result property="remark" column="remark"/> |
|
|
<result property="createTime" column="create_time"/> |
|
|
<result property="createTime" column="create_time"/> |
|
@ -49,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
durable_years, |
|
|
durable_years, |
|
|
installation_site, |
|
|
installation_site, |
|
|
use_state, |
|
|
use_state, |
|
|
|
|
|
device_state, |
|
|
other_config, |
|
|
other_config, |
|
|
remark, |
|
|
remark, |
|
|
create_time, |
|
|
create_time, |
|
@ -59,7 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
|
<select id="selectDcDeviceList" parameterType="dcDevice" resultMap="DcDevice"> |
|
|
<select id="selectDcDeviceList" parameterType="dcDevice" resultMap="DcDevice"> |
|
|
select t1.id, t1.iot_device_id, t1.group_id, t1.product_id, t1.stake_mark_id, t1.direction, t1.device_name, t1.device_code, t1.device_type, |
|
|
select t1.id, t1.iot_device_id, t1.group_id, t1.product_id, t1.stake_mark_id, 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.other_config,t1.remark,t1.create_time,t1.update_time, |
|
|
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, |
|
|
t2.longitude,t2.latitude |
|
|
t2.longitude,t2.latitude |
|
|
from dc_device t1 |
|
|
from dc_device t1 |
|
|
left join dc_stake_mark t2 on t1.stake_mark_id = t2.id and t1.direction = t2.direction |
|
|
left join dc_stake_mark t2 on t1.stake_mark_id = t2.id and t1.direction = t2.direction |
|
@ -78,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="durableYears != null and durableYears != ''">and t1.durable_years = #{durableYears}</if> |
|
|
<if test="durableYears != null and durableYears != ''">and t1.durable_years = #{durableYears}</if> |
|
|
<if test="installationSite != null and installationSite != ''">and t1.installation_site = #{installationSite}</if> |
|
|
<if test="installationSite != null and installationSite != ''">and t1.installation_site = #{installationSite}</if> |
|
|
<if test="useState != null and useState != ''">and t1.use_state = #{useState}</if> |
|
|
<if test="useState != null and useState != ''">and t1.use_state = #{useState}</if> |
|
|
|
|
|
<if test="deviceState != null and deviceState != ''">and t1.device_state = #{deviceState}</if> |
|
|
<if test="otherConfig != null and otherConfig != ''">and t1.other_config = #{otherConfig}</if> |
|
|
<if test="otherConfig != null and otherConfig != ''">and t1.other_config = #{otherConfig}</if> |
|
|
<if test="remark != null and remark != ''">and t1.remark = #{remark}</if> |
|
|
<if test="remark != null and remark != ''">and t1.remark = #{remark}</if> |
|
|
<if test="createTime != null and createTime != ''">and t1.create_time = #{createTime}</if> |
|
|
<if test="createTime != null and createTime != ''">and t1.create_time = #{createTime}</if> |
|
|