|
|
|
@ -29,18 +29,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectT_CollectDeviceInfoVo">
|
|
|
|
<sql id="selectT_CollectDeviceInfoVo">
|
|
|
|
select objid, collectDeviceId, manufacturer, model, factoryNumber, produceDate, settingAddress, energyTypeId, ip from T_CollectDeviceInfo
|
|
|
|
select objid,
|
|
|
|
|
|
|
|
collectDeviceId,
|
|
|
|
|
|
|
|
manufacturer,
|
|
|
|
|
|
|
|
model,
|
|
|
|
|
|
|
|
factoryNumber,
|
|
|
|
|
|
|
|
produceDate,
|
|
|
|
|
|
|
|
settingAddress,
|
|
|
|
|
|
|
|
energyTypeId,
|
|
|
|
|
|
|
|
ip
|
|
|
|
|
|
|
|
from T_CollectDeviceInfo
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectT_CollectDeviceInfoDTOVo">
|
|
|
|
<sql id="selectT_CollectDeviceInfoDTOVo">
|
|
|
|
select t1.objid as objid, t1.collectDeviceId as collectDeviceId,t1.manufacturer as manufacturer,t1.model as model,
|
|
|
|
select t1.objid as objid,
|
|
|
|
t1.factoryNumber as factoryNumber,t1.produceDate as produceDate,t1.settingAddress as settingAddress,
|
|
|
|
t1.collectDeviceId as collectDeviceId,
|
|
|
|
t2.energyName as energyTypeId, t1.ip as ip
|
|
|
|
t1.manufacturer as manufacturer,
|
|
|
|
|
|
|
|
t1.model as model,
|
|
|
|
|
|
|
|
t1.factoryNumber as factoryNumber,
|
|
|
|
|
|
|
|
t1.produceDate as produceDate,
|
|
|
|
|
|
|
|
t1.settingAddress as settingAddress,
|
|
|
|
|
|
|
|
t2.energyName as energyTypeId,
|
|
|
|
|
|
|
|
t1.ip as ip
|
|
|
|
from T_CollectDeviceInfo t1
|
|
|
|
from T_CollectDeviceInfo t1
|
|
|
|
left join T_EnergyType t2 on t1.energyTypeId = t2.energyTypeId
|
|
|
|
left join T_EnergyType t2 on t1.energyTypeId = t2.energyTypeId
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectT_CollectDeviceInfoList" parameterType="T_CollectDeviceInfo" resultMap="T_CollectDeviceInfoResult">
|
|
|
|
<select id="selectT_CollectDeviceInfoList" parameterType="T_CollectDeviceInfo"
|
|
|
|
|
|
|
|
resultMap="T_CollectDeviceInfoResult">
|
|
|
|
<include refid="selectT_CollectDeviceInfoVo"/>
|
|
|
|
<include refid="selectT_CollectDeviceInfoVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="collectDeviceId != null and collectDeviceId != ''">and collectDeviceId = #{collectDeviceId}</if>
|
|
|
|
<if test="collectDeviceId != null and collectDeviceId != ''">and collectDeviceId = #{collectDeviceId}</if>
|
|
|
|
@ -54,7 +70,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectT_CollectDeviceInfoDTOList" parameterType="T_CollectDeviceInfoDTO" resultMap="T_CollectDeviceInfoDTOResult">
|
|
|
|
<select id="selectT_CollectDeviceInfoDTOList" parameterType="T_CollectDeviceInfoDTO"
|
|
|
|
|
|
|
|
resultMap="T_CollectDeviceInfoDTOResult">
|
|
|
|
<include refid="selectT_CollectDeviceInfoDTOVo"/>
|
|
|
|
<include refid="selectT_CollectDeviceInfoDTOVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="settingAddress != null and settingAddress != ''">and t1.settingAddress = #{settingAddress}</if>
|
|
|
|
<if test="settingAddress != null and settingAddress != ''">and t1.settingAddress = #{settingAddress}</if>
|
|
|
|
@ -109,7 +126,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteT_CollectDeviceInfoById" parameterType="Long">
|
|
|
|
<delete id="deleteT_CollectDeviceInfoById" parameterType="Long">
|
|
|
|
delete from T_CollectDeviceInfo where objid = #{objid}
|
|
|
|
delete
|
|
|
|
|
|
|
|
from T_CollectDeviceInfo
|
|
|
|
|
|
|
|
where objid = #{objid}
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteT_CollectDeviceInfoByIds" parameterType="String">
|
|
|
|
<delete id="deleteT_CollectDeviceInfoByIds" parameterType="String">
|
|
|
|
|