|
|
|
@ -63,8 +63,24 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectPatrolTaskStatusList" parameterType="PatrolTaskStatus" resultMap="PatrolTaskStatusResult"> |
|
|
|
select a.* from patrol_task_status a |
|
|
|
LEFT JOIN patrol_task b on a.task_code=b.task_code |
|
|
|
SELECT |
|
|
|
a.line_id, |
|
|
|
a.task_patrolled_id, |
|
|
|
a.task_name, |
|
|
|
a.task_code, |
|
|
|
a.task_state, |
|
|
|
a.plan_start_time, |
|
|
|
a.start_time, |
|
|
|
a.task_progress, |
|
|
|
a.task_estimated_time, |
|
|
|
a.description, |
|
|
|
a.pos_type, |
|
|
|
a.code, |
|
|
|
a.pos, |
|
|
|
a.end_time, |
|
|
|
b.type as patrol_type, |
|
|
|
b.execution_status as exec_type from patrol_task_status a |
|
|
|
LEFT JOIN patrol_task b on a.task_code=b.task_code |
|
|
|
<where> |
|
|
|
<if test="taskPatrolledId != null and taskPatrolledId != ''">and a.task_patrolled_id = #{taskPatrolledId} |
|
|
|
</if> |
|
|
|
|