Commit 6ab7e598 authored by zhangwanglin's avatar zhangwanglin

服务方案

parent e204a5b6
......@@ -21,7 +21,7 @@ public class SrvTaskScheduledController {
@Autowired
private SrvTaskService srvTaskService;
@Scheduled(cron = "0 38 09 * * ?")
@Scheduled(cron = "0 18 21 * * ?")
public void timeAllocationSrvTask() {
log.info("timeAllocationSrvTask========start");
srvTaskService.timeAllocationSrvTask();
......
......@@ -42,13 +42,13 @@
ch_disable_info i
LEFT JOIN ch_srv_send s ON s.disab_info_id = i.disab_info_id
LEFT JOIN ch_fnd_organ o ON i.organ_id = o.organ_id
LEFT JOIN CH_APR_TASK t ON i.disab_info_id = t.DISABLE_INFO_ID
--left join ch_apr_report report on t.task_id = report.task_id
LEFT JOIN (select * from CH_APR_TASK where APR_TYPE =0) t ON i.disab_info_id = t.DISABLE_INFO_ID
left join ch_apr_report report on t.task_id = report.task_id
<where>
t.TASK_STATUS = 3 --and report.DISABLE_LEVEL_ID in ('3','4','5')
-- and sysdate <![CDATA[ > ]]> report.PUBLICITY_END_TIME
t.TASK_STATUS = 3 --and report.DISABLE_LEVEL_ID in ('3','4','5')
--and sysdate <![CDATA[ > ]]> report.PUBLICITY_END_TIME
and t.task_id in (select distinct TASK_ID from CH_APR_REPORT report where report.DISABLE_LEVEL_ID in ('3','4','5')
and sysdate <![CDATA[ > ]]> report.PUBLICITY_END_TIME)
and sysdate <![CDATA[ > ]]> report.PUBLICITY_END_TIME)
<if test="chSrvOrgan.organId != null and chSrvOrgan.organId != ''">
AND o.organ_id = #{chSrvOrgan.organId}
</if>
......
......@@ -224,7 +224,7 @@
where <![CDATA[ t.SRV_DATE < sysdate and
(info.EXIT_TIME > sysdate or info.EXIT_TIME is null)
and sysdate < program.PROGRAM_EDN_DATE
and sysdate > report.PUBLICITY_END_TIME ]]>
and sysdate > report.PUBLICITY_END_TIME and program.PROG_STATUS <>'2' ]]>
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment