|
|
|
@ -77,7 +77,7 @@ |
|
|
|
<select id="selectByAllList" parameterType="InspectionReport" resultMap="InspectionReportResult"> |
|
|
|
select a.* from inspection_report a |
|
|
|
left JOIN patrol_task b on a.task_id=b.task_id |
|
|
|
left join basedata_device c on b.device_list = c.device_id |
|
|
|
left JOIN basedata_device c on b.device_list = c.device_id |
|
|
|
left JOIN basedata_area d on b.area_id =d.area_id |
|
|
|
left JOIN basedata_eqpbook e on find_in_set( e.patrol_device_code, b.dev_no ) |
|
|
|
<where> |
|
|
|
@ -97,8 +97,7 @@ |
|
|
|
concat('%',#{inspectionTaskName},'%') |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
GROUP BY a.line_id |
|
|
|
ORDER BY a.line_id desc |
|
|
|
ORDER BY a.inspection_date DESC |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectInspectionReportByLineId" parameterType="Long" resultMap="InspectionReportResult"> |
|
|
|
|