|
|
|
@ -12,10 +12,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="planePosition" column="plane_position" />
|
|
|
|
|
<result property="taskState" column="task_state" />
|
|
|
|
|
<result property="imgPath" column="img_path" />
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
<result property="sanQty" column="sanQty" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectRecordInspectionTaskVo">
|
|
|
|
|
select objid, inspection_id, area_id, area_name, plane_position, task_state from record_inspection_task
|
|
|
|
|
select objid, inspection_id, area_id, area_name, plane_position, task_state,update_time from record_inspection_task
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectRecordInspectionTaskList" parameterType="RecordInspectionTask" resultMap="RecordInspectionTaskResult">
|
|
|
|
@ -75,14 +77,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</delete>
|
|
|
|
|
<select id="iRecordInspectionTaskService" resultMap="RecordInspectionTaskResult">
|
|
|
|
|
|
|
|
|
|
select rit.objid, rit.inspection_id, area_id, area_name, plane_position, task_state,
|
|
|
|
|
|
|
|
|
|
select rit.objid,
|
|
|
|
|
rit.inspection_id,
|
|
|
|
|
area_id,
|
|
|
|
|
area_name,
|
|
|
|
|
plane_position,
|
|
|
|
|
count(info.inspection_id) as sanQty,
|
|
|
|
|
task_state,
|
|
|
|
|
rii.img_path
|
|
|
|
|
from record_inspection_task rit
|
|
|
|
|
left join bg_wheel_chocks.record_inspection_img rii on rit.objid = rii.task_id
|
|
|
|
|
left join record_inspection_img rii on rit.objid = rii.task_id
|
|
|
|
|
left join record_inspection_info as info on info.inspection_id=rit.inspection_id and
|
|
|
|
|
info.location_code=plane_position
|
|
|
|
|
|
|
|
|
|
where rit.inspection_id in
|
|
|
|
|
<foreach item="objid" collection="array" open="(" separator="," close=")">
|
|
|
|
|
#{objid}
|
|
|
|
|
</foreach>
|
|
|
|
|
group by info. location_code, rit.inspection_id;
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|