Merge remote-tracking branch 'origin/feature/gzdyh_ctiy_bugfix' into feature/gzdyh_ctiy_bugfix
| | |
| | | |
| | | <!-- 查询分派超时案件 --> |
| | | <select id="listFPQuantity" resultType="cn.huge.module.analysis.domain.dto.TimeoutTaskInfoDTO"> |
| | | select t2.case_id as caseId, t2.id as caseTaskId, t2.create_time as turnaroundTime, |
| | | select t2.case_id as caseId, t2.id as caseTaskId, t2.create_time as turnaroundTime, t2.node_name as nodeName, (case t2.status when 1 then 0 when 2 then 1 end) as taskStatus, |
| | | (case t2.status when 2 then t2.overtime_hour when 1 then DATEDIFF(hh, t2.expire_time, sysdate) end) as timeLimit, |
| | | t3.case_level as caseGrade, t3.canal_name as caseSource, t4.mediator as mediator, t3.status_name as statusName, |
| | | concat_ws('', ifnull(t3.case_type_first_name, ''), '/' , ifnull(t3.case_type_name, '')) as caseType, |
| | |
| | | |
| | | <!-- 查询受理超时案件 --> |
| | | <select id="listSLQuantity" resultType="cn.huge.module.analysis.domain.dto.TimeoutTaskInfoDTO"> |
| | | select t2.case_id as caseId, t2.id as caseTaskId,t2.create_time as turnaroundTime, |
| | | select t2.case_id as caseId, t2.id as caseTaskId,t2.create_time as turnaroundTime, t2.node_name as nodeName, (case t2.status when 1 then 0 when 2 then 1 end) as taskStatus, |
| | | (case t2.status when 2 then t2.overtime_hour when 1 then DATEDIFF(hh, t2.expire_time, sysdate) end) as timeLimit, |
| | | t3.case_level as caseGrade, t3.canal_name as caseSource, t4.mediator as mediator, t3.status_name as statusName, |
| | | concat_ws('', ifnull(t3.case_type_first_name, ''), '/' , ifnull(t3.case_type_name, '')) as caseType, |
| | |
| | | |
| | | <!-- 查询督办超时案件 --> |
| | | <select id="listDBQuantity" resultType="cn.huge.module.analysis.domain.dto.TimeoutTaskInfoDTO"> |
| | | select t2.case_id as caseId, t2.sup_time as turnaroundTime, |
| | | select t2.case_id as caseId, t2.sup_time as turnaroundTime, '督办回复' as nodeName, t2.sup_status as taskStatus, |
| | | (case t2.sup_status when 1 then t2.overtime_hour when 0 then DATEDIFF(hh, DATEADD(hour, t2.reply_term, t2.sup_time), sysdate) end) as timeLimit, |
| | | t3.case_level as caseGrade,t3.canal_name as caseSource, t4.mediator as mediator, t3.status_name as statusName, |
| | | concat_ws('', ifnull(t3.case_type_first_name, ''), '/' , ifnull(t3.case_type_name, '')) as caseType, |
| | |
| | | <!-- 查询督办超时案件 --> |
| | | <select id="listAllQuantity" resultType="cn.huge.module.analysis.domain.dto.TimeoutTaskInfoDTO"> |
| | | select * from( |
| | | select t2.case_id as caseId, t2.id as caseTaskId, t2.create_time as turnaroundTime, |
| | | select t2.case_id as caseId, t2.id as caseTaskId, t2.create_time as turnaroundTime, t2.node_name as nodeName, (case t2.status when 1 then 0 when 2 then 1 end) as taskStatus, |
| | | (case t2.status when 2 then t2.overtime_hour when 1 then DATEDIFF(hh, t2.expire_time, sysdate) end) as timeLimit, |
| | | t3.case_level as caseGrade, t3.canal_name as caseSource, t4.mediator as mediator, t3.status_name as statusName, |
| | | concat_ws('', ifnull(t3.case_type_first_name, ''), '/' , ifnull(t3.case_type_name, '')) as caseType, |
| | |
| | | or (t2.node_id = 'ZJ_DSL' or t2.node_id = 'QJ_DSL' or t2.node_id = 'SJ_DSL' or t2.node_id = 'DSL')) |
| | | and ((t2.overtime_status = 1 and t2.status = 2) or (sysdate > expire_time and t2.status = 1)) |
| | | union all |
| | | select t2.case_id as caseId, null as caseTaskId, t2.sup_time as turnaroundTime, |
| | | select t2.case_id as caseId, null as caseTaskId, t2.sup_time as turnaroundTime, '督办回复' as nodeName, t2.sup_status as taskStatus, |
| | | (case t2.sup_status when 1 then t2.overtime_hour when 0 then DATEDIFF(hh, DATEADD(hour, t2.reply_term, t2.sup_time), sysdate) end) as timeLimit, |
| | | t3.case_level as caseGrade,t3.canal_name as caseSource, t4.mediator as mediator, t3.status_name as statusName, |
| | | concat_ws('', ifnull(t3.case_type_first_name, ''), '/' , ifnull(t3.case_type_name, '')) as caseType, |
| | |
| | | * 督办次数 |
| | | */ |
| | | private String superviseCount; |
| | | |
| | | |
| | | /** |
| | | * 超时节点 |
| | | */ |
| | | private String nodeName; |
| | | |
| | | /** |
| | | * 节点处理状态 |
| | | */ |
| | | private Integer taskStatus; |
| | | } |