|
|
|
@ -48,9 +48,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
<!-- 巡检点位漏检率 --> |
|
|
|
<select id="queryPointNum" parameterType="com.inspect.client.domain.ReqDomain" resultMap="statisticsResult"> |
|
|
|
select count(DISTINCT point.patrolpoint_id) totalNum,count(DISTINCT result.device_id) validNum from basedata_patrolpoint point |
|
|
|
select count(DISTINCT point.patrol_point_id) totalNum,count(DISTINCT result.device_id) validNum from basedata_patrolpoint point |
|
|
|
left join patrol_result result |
|
|
|
on point.patrolpoint_id = result.device_id |
|
|
|
on point.patrol_point_id = result.device_id |
|
|
|
<if test="beginTime != null and endTime != null"> |
|
|
|
and result.time between #{beginTime} and #{endTime} |
|
|
|
</if> |
|
|
|
|