|
|
|
@ -792,6 +792,11 @@ |
|
|
|
and f.check_time is null and a.patrol_point_id is not null |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectAlgSubTypeByCode" resultType="java.util.Map"> |
|
|
|
select a.* |
|
|
|
from basedata_alg_subtype a |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectPatrolResults" resultType="com.inspect.simulator.domain.result.PatrolResult"> |
|
|
|
select f.line_id lineId, |
|
|
|
s.task_patrolled_id taskPatrolledId, |
|
|
|
@ -802,7 +807,6 @@ |
|
|
|
a.patrol_point_name pointName, |
|
|
|
f.create_time createTime, |
|
|
|
f.file_path filePath, |
|
|
|
bas.alg_subtype_name algorithmsName, |
|
|
|
ra.alg_type algorithmsType, |
|
|
|
ra.res_img_url resImgUrl, |
|
|
|
ra.image_normal_url_path imageNormalUrlPath, |
|
|
|
@ -816,8 +820,6 @@ |
|
|
|
left join basedata_device c on a.device_id = c.device_id |
|
|
|
left join basedata_area e on a.area_id = e.area_id |
|
|
|
left join basedata_area d on d.area_id = e.parent_id |
|
|
|
left join basedata_alg_subtype bas |
|
|
|
on bas.alg_subtype_code = ra.alg_type and find_in_set(bas.alg_subtype_id, a.alg_subtype_ids) |
|
|
|
where |
|
|
|
a.patrol_point_id is not null and (ra.filter = '0' or ra.filter = '1') |
|
|
|
<if test="astId != null and astId != ''"> |
|
|
|
|