|
|
@@ -75,10 +75,12 @@
|
|
|
inspectionRouteId,t.irp_rel_id,t.irp_rel_id irpRelId,t.status_cd,t.status_cd
|
|
|
statusCd,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,
|
|
|
ip.inspection_id inspectionId,ip.machine_id machineId,ip.remark,
|
|
|
- ip.inspection_name inspectionName
|
|
|
- from inspection_route_point_rel t,inspection_point ip
|
|
|
+ ip.inspection_name inspectionName,m.location_type_cd locationTypeCd,m.location_obj_id locationObjId
|
|
|
+ from inspection_route_point_rel t,inspection_point ip,machine m
|
|
|
where 1 =1
|
|
|
and t.inspection_id = ip.inspection_id
|
|
|
+ and ip.machine_id = m.machine_id
|
|
|
+ and m.status_cd = 0
|
|
|
and ip.status_cd = '0'
|
|
|
<if test="inspectionId !=null and inspectionId != ''">
|
|
|
and t.inspection_id= #{inspectionId}
|
|
|
@@ -135,10 +137,12 @@
|
|
|
<!-- 查询巡检路线巡检点关系数量 add by wuxw 2018-07-03 -->
|
|
|
<select id="queryInspectionRoutePointRelsCount" parameterType="Map" resultType="Map">
|
|
|
select count(1) count
|
|
|
- from inspection_route_point_rel t,inspection_point ip
|
|
|
+ from inspection_route_point_rel t,inspection_point ip,machine m
|
|
|
where 1 =1
|
|
|
and t.inspection_id = ip.inspection_id
|
|
|
- and ip.status_cd = '0'
|
|
|
+ and ip.machine_id = m.machine_id
|
|
|
+ and m.status_cd = 0
|
|
|
+ and ip.status_cd = '0
|
|
|
<if test="inspectionId !=null and inspectionId != ''">
|
|
|
and t.inspection_id= #{inspectionId}
|
|
|
</if>
|