|
|
@@ -19,15 +19,15 @@
|
|
|
</association>
|
|
|
<association property="integrity" javaType="com.xunmei.iot.vo.videoDiagnosis.VideoDiagnosisIntegrityVo">
|
|
|
<result column="integrity_record_date" property="recordDate"></result>
|
|
|
- <result column="integrity_lost_duration" property="lostDuration"></result>
|
|
|
- <result column="integrity_lost_span" property="lostSpan"></result>
|
|
|
+ <result column="integrity_lose_duration" property="loseDuration"></result>
|
|
|
+ <result column="integrity_lose_span" property="loseSpan"></result>
|
|
|
+ <result column="integrity_check_span" property="checkSpan"></result>
|
|
|
<result column="integrity_update_time" property="updateTime"></result>
|
|
|
</association>
|
|
|
<association property="storage" javaType="com.xunmei.iot.vo.videoDiagnosis.VideoDiagnosisStorageVo">
|
|
|
<result column="storage_plan_days" property="planDays"></result>
|
|
|
<result column="storage_real_days" property="realDays"></result>
|
|
|
<result column="storage_earliest_video_time" property="earliestTime"></result>
|
|
|
- <result column="storage_lose_date_str" property="lostDateStr"></result>
|
|
|
</association>
|
|
|
</resultMap>
|
|
|
<select id="selectPage" resultType="com.xunmei.iot.vo.videoDiagnosis.VideoDiagnosisWebPageVo">
|
|
|
@@ -43,11 +43,11 @@
|
|
|
vdc.real_days,
|
|
|
vdr.signal_lost,
|
|
|
vdr.occlude,
|
|
|
- if(vdr.brightness+vdr.color_cast+vdr.snowflake+vdr.stripe+vdr.contrast+vdr.blurry>1,1,0) as quality
|
|
|
+ if(vdr.id is null,null,if(vdr.brightness+vdr.color_cast+vdr.snowflake+vdr.stripe+vdr.contrast+vdr.blurry>1,1,0)) as quality
|
|
|
from iot_dvr_channel c
|
|
|
INNER JOIN iot_device d on c.host_code=d.equipment_code
|
|
|
left JOIN mediator_video_days_check vdc on c.host_code=vdc.equipment_code and c.channel_code=vdc.channel_code
|
|
|
- left JOIN mediator_video_integrity_check_newest vic on c.host_code=vic.equipment_code and
|
|
|
+ left JOIN mediator_video_integrity_check vic on c.host_code=vic.equipment_code and
|
|
|
c.channel_code=vic.channel_code
|
|
|
left JOIN mediator_video_diagnosis_record vdr on c.host_code=vdr.equipment_code and
|
|
|
c.channel_code=vdr.channel_code
|
|
|
@@ -58,8 +58,8 @@
|
|
|
<if test="pageDto.checkSub==false">
|
|
|
and c.org_id = #{pageDto.orgId}
|
|
|
</if>
|
|
|
- <if test="pageDto.equipmentName!=null and pageDto.equipmentName!=''">
|
|
|
- and d.equipment_name like concat('%', #{pageDto.equipmentName},'%')
|
|
|
+ <if test="pageDto.hostName!=null and pageDto.hostName!=''">
|
|
|
+ and d.equipment_name like concat('%', #{pageDto.hostName},'%')
|
|
|
</if>
|
|
|
<if test="pageDto.channelName!=null and pageDto.channelName!=''">
|
|
|
and d.channel_name like concat('%', #{pageDto.channelName},'%')
|
|
|
@@ -94,17 +94,17 @@
|
|
|
vdr.blurry as quality_blurry,
|
|
|
vdr.img_url as quality_image,
|
|
|
vic.record_date as integrity_record_date,
|
|
|
- vic.lose_duration as integrity_lost_duration,
|
|
|
- vic.lose_span as integrity_lost_span,
|
|
|
+ vic.lose_duration as integrity_lose_duration,
|
|
|
+ vic.lose_span as integrity_lose_span,
|
|
|
+ vic.check_span as integrity_check_span,
|
|
|
vic.update_time as integrity_update_time,
|
|
|
vdc.plan_days as storage_plan_days,
|
|
|
vdc.real_days as storage_real_days,
|
|
|
- vdc.earliest_video_time as storage_earliest_video_time,
|
|
|
- vdc.lose_date as storage_lose_date_str
|
|
|
+ vdc.earliest_video_time as storage_earliest_video_time
|
|
|
FROM iot_dvr_channel c
|
|
|
INNER JOIN iot_device d ON c.host_code = d.equipment_code
|
|
|
LEFT JOIN mediator_video_days_check vdc ON c.host_code = vdc.equipment_code AND c.channel_code = vdc.channel_code
|
|
|
- LEFT JOIN mediator_video_integrity_check_newest vic ON c.host_code = vic.equipment_code AND c.channel_code = vic.channel_code
|
|
|
+ LEFT JOIN mediator_video_integrity_check_log vic ON c.host_code = vic.equipment_code AND c.channel_code = vic.channel_code
|
|
|
LEFT JOIN mediator_video_diagnosis_record vdr ON c.host_code = vdr.equipment_code AND c.channel_code = vdr.channel_code
|
|
|
WHERE c.host_code=#{hostCode} and c.channel_code=#{channelCode}
|
|
|
</select>
|