|
@@ -45,7 +45,11 @@
|
|
|
<result column="sim_company" property="simCompany"/>
|
|
|
<result column="disk_space" property="diskSpace"/>
|
|
|
<result column="memery_space" property="memerySpace"/>
|
|
|
- <result column="sysinfo_create_time" property="createTime"/>
|
|
|
+ <result column="is_have_temp" property="isHaveTemp"/>
|
|
|
+ <result column="is_have_light_main" property="isHaveLightMain"/>
|
|
|
+ <result column="is_have_light_second" property="isHaveLightSecond"/>
|
|
|
+ <result column="is_have_freeze" property="isHaveFreeze"/>
|
|
|
+ <result column="is_have_heat" property="isHaveHeat"/>
|
|
|
</association>
|
|
|
<association property="deviceStatus" javaType="com.xy.dto.DeviceStatusDto$Vo">
|
|
|
<result column="sys_start_time" property="sysStartTime"/>
|
|
@@ -116,6 +120,11 @@
|
|
|
sysinfo.disk_space,
|
|
|
sysinfo.memery_space,
|
|
|
sysinfo.create_time as sysinfo_create_time,
|
|
|
+ sysinfo.is_have_temp,
|
|
|
+ sysinfo.is_have_light_main,
|
|
|
+ sysinfo.is_have_light_second,
|
|
|
+ sysinfo.is_have_freeze,
|
|
|
+ sysinfo.is_have_heat,
|
|
|
status.sys_start_time,
|
|
|
status.sys_cur_time,
|
|
|
status.sys_power,
|
|
@@ -353,4 +362,20 @@
|
|
|
</where>
|
|
|
GROUP BY d.merc_id,s.net_state
|
|
|
</select>
|
|
|
+ <select id="placeDeviceNum" resultType="com.xy.dto.DeviceInfoDto$PlaceDeviceNumVo">
|
|
|
+ SELECT place_id,count(*) as num
|
|
|
+ FROM device_info
|
|
|
+ <where>
|
|
|
+ <if test="dto.placeId != null">
|
|
|
+ AND place_id = #{dto.placeId}
|
|
|
+ </if>
|
|
|
+ <if test="dto.placeIdList != null and dto.placeIdList.size() > 0">
|
|
|
+ AND place_id IN
|
|
|
+ <foreach collection="dto.placeIdList" item="placeId" index="index" open="(" close=")" separator=",">
|
|
|
+ #{placeId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ GROUP BY place_id
|
|
|
+ </select>
|
|
|
</mapper>
|