|
|
|
@ -132,14 +132,18 @@
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getListPage" parameterType="com.hnac.hzinfo.inspect.task.vo.TaskListQuery" resultType="com.hnac.hzinfo.inspect.task.vo.TaskVo"> |
|
|
|
|
SELECT t.*,u.USER_ID from HZ_ST_EX_TASK t |
|
|
|
|
LEFT JOIN HZ_ST_EX_TASK_USER u on t.ID=u.TASK_ID |
|
|
|
|
where t.IS_DELETED=0 and u.IS_DELETED=0 |
|
|
|
|
SELECT |
|
|
|
|
t.*, u.USER_ID |
|
|
|
|
from |
|
|
|
|
HZ_ST_EX_TASK t |
|
|
|
|
left join HZ_ST_EX_TASK_USER u on t.ID = u.TASK_ID |
|
|
|
|
where |
|
|
|
|
t.IS_DELETED = 0 and u.IS_DELETED = 0 |
|
|
|
|
<if test="task.dutyId != null "> |
|
|
|
|
and t.DUTY_ID=#{task.dutyId} |
|
|
|
|
and t.DUTY_ID = #{task.dutyId} |
|
|
|
|
</if> |
|
|
|
|
<if test="task.curUserId != null and task.curUserId != ''"> |
|
|
|
|
and u.USER_ID=#{task.curUserId} |
|
|
|
|
and u.USER_ID = #{task.curUserId} |
|
|
|
|
</if> |
|
|
|
|
<if test="task.planName != null and task.planName != ''"> |
|
|
|
|
and t.PLAN_NAME like concat('%', #{task.planName}, '%') |
|
|
|
@ -157,31 +161,32 @@
|
|
|
|
|
and t.PLAN_END_TIME >= #{task.startTime} |
|
|
|
|
</if> |
|
|
|
|
<if test="task.cycle != null and task.cycle != ''"> |
|
|
|
|
and t.CYCLE=#{task.cycle} |
|
|
|
|
and t.CYCLE = #{task.cycle} |
|
|
|
|
</if> |
|
|
|
|
<if test="task.status != null"> |
|
|
|
|
and t.STATUS=#{task.status} |
|
|
|
|
and t.STATUS = #{task.status} |
|
|
|
|
</if> |
|
|
|
|
<if test="task.keepOnRecord != null"> |
|
|
|
|
and t.KEEP_ON_RECORD=#{task.keepOnRecord} |
|
|
|
|
and t.KEEP_ON_RECORD = #{task.keepOnRecord} |
|
|
|
|
</if> |
|
|
|
|
<if test="task.tenantId != null and task.tenantId != ''"> |
|
|
|
|
and t.TENANT_ID = #{task.tenantId} |
|
|
|
|
</if> |
|
|
|
|
<if test="task.autoVideo != null"> |
|
|
|
|
and t.AUTO_VIDEO=#{task.autoVideo} |
|
|
|
|
and t.AUTO_VIDEO = #{task.autoVideo} |
|
|
|
|
</if> |
|
|
|
|
<if test="task.taskIds != null and task.taskIds != ''"> |
|
|
|
|
and FIND_IN_SET(t.ID,#{task.taskIds}) |
|
|
|
|
and FIND_IN_SET(t.ID, #{task.taskIds}) |
|
|
|
|
</if> |
|
|
|
|
<if test="task.areaId != null"> |
|
|
|
|
and t.CREATE_DEPT = #{task.areaId} |
|
|
|
|
<if test="task.createDept != null"> |
|
|
|
|
and t.CREATE_DEPT = #{task.createDept} |
|
|
|
|
</if> |
|
|
|
|
<if test="task.yearMonth != null"> |
|
|
|
|
and date_format(t.PLAN_START_TIME,'%Y-%m')= #{task.yearMonth} |
|
|
|
|
and date_format(t.PLAN_START_TIME,'%Y-%m') = #{task.yearMonth} |
|
|
|
|
</if> |
|
|
|
|
order by t.UPDATE_TIME desc |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getAllPageList" parameterType="com.hnac.hzinfo.inspect.task.vo.TaskListQuery" resultType="com.hnac.hzinfo.inspect.task.vo.TaskVo"> |
|
|
|
|
SELECT |
|
|
|
|
t.*, b.USER_ID as userIds, |
|
|
|
|