|
|
|
@ -65,6 +65,43 @@
|
|
|
|
|
<if test="req.code != null and req.code != ''"> |
|
|
|
|
AND t.`CODE` LIKE CONCAT('%',#{req.code},'%') |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
<if test="req.handler != null"> |
|
|
|
|
AND t.`HANDLER`=#{req.handler} |
|
|
|
|
</if> |
|
|
|
|
<if test="req.planId != null"> |
|
|
|
|
AND p.ID =#{req.planId} |
|
|
|
|
</if> |
|
|
|
|
<if test="req.name != null and req.name != ''"> |
|
|
|
|
AND t.`NAME` LIKE CONCAT('%',#{req.name},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="req.excludeNullTicket != null and req.excludeNullTicket == 1"> |
|
|
|
|
and t.`TICKET_ID` is null |
|
|
|
|
</if> |
|
|
|
|
<if test="req.startTime != null and req.startTime != ''"> |
|
|
|
|
and t.`PLAN_START_TIME` > #{req.startTime} |
|
|
|
|
</if> |
|
|
|
|
<if test="req.endTime != null and req.startTime != '' "> |
|
|
|
|
and t.`PLAN_START_TIME` < #{req.endTime} |
|
|
|
|
</if> |
|
|
|
|
<if test="req.deptIds != null"> |
|
|
|
|
and t.create_dept in |
|
|
|
|
<foreach collection="req.deptIds" item="item" index="index" open="(" close=")" separator=","> |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
</if> |
|
|
|
|
ORDER BY t.create_time DESC |
|
|
|
|
</select> |
|
|
|
|
<select id="pageConditionByStatus" resultType="com.hnac.hzims.operational.access.vo.OperAccessTaskVO"> |
|
|
|
|
SELECT t.*,p.name as planName |
|
|
|
|
FROM hzims_oper_access_task t |
|
|
|
|
left join hzims_oper_access_plan p |
|
|
|
|
on t.plan_id = p.id |
|
|
|
|
WHERE |
|
|
|
|
t.IS_DELETED =0 |
|
|
|
|
<if test="req.code != null and req.code != ''"> |
|
|
|
|
AND t.`CODE` LIKE CONCAT('%',#{req.code},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="req.ids != null"> |
|
|
|
|
AND t.id in |
|
|
|
|
<foreach collection="req.ids" item="item" index="index" open="(" close=")" separator=","> |
|
|
|
@ -97,7 +134,6 @@
|
|
|
|
|
</if> |
|
|
|
|
ORDER BY t.create_time DESC |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="selectByEmCode" resultType="com.hnac.hzims.operational.access.entity.OperAccessTaskEntity" parameterType="list"> |
|
|
|
|
select * from hzims_oper_access_task |
|
|
|
|
where IS_DELETED = 0 |
|
|
|
|