| | |
| | | select |
| | | count(case when node_id = 'ZJ_DFP' or node_id = 'QJ_DFP' or node_id = 'SJ_DFP' then id end) as waitDisp, |
| | | count(case when sign_status = 1 then id end) as waitSign, |
| | | count(case when node_id = 'ZJ_DSL' or node_id = 'QJ_DFP' or node_id = 'SJ_DFP' then id end) as waitAccept, |
| | | count(case when (node_id = 'ZJ_DSL' or node_id = 'QJ_DSL' or node_id = 'SJ_DSL') and t1.sign_status != 1 then id end) as waitAccept, |
| | | count(case when node_id = 'BLFK' then id end) as Processing |
| | | from |
| | | <include refid="table-name" /> |
| | |
| | | dyh_case_task t1 left join dyh_case_info t2 on t1.case_id = t2.id |
| | | where |
| | | t1.cande_unit_id = #{terms.candeUnitId} |
| | | and (t1.node_id = 'ZJ_DSL' or t1.node_id = 'QJ_DFP' or t1.node_id = 'SJ_DFP') |
| | | and (t1.node_id = 'ZJ_DSL' or t1.node_id = 'QJ_DSL' or t1.node_id = 'SJ_DSL') |
| | | and t1.delete_status = 0 |
| | | and t1.sign_status != 1 |
| | | and t1.status = #{terms.status} |
| | |
| | | dyh_case_task t1 left join dyh_case_info t2 on t1.case_id = t2.id |
| | | where |
| | | t1.cande_unit_id = #{terms.candeUnitId} |
| | | and (t1.node_id = 'ZJ_DSL' or t1.node_id = 'QJ_DFP' or t1.node_id = 'SJ_DFP') |
| | | and (t1.node_id = 'ZJ_DSL' or t1.node_id = 'QJ_DSL' or t1.node_id = 'SJ_DSL') |
| | | and t1.delete_status = 0 |
| | | and t1.sign_status != 1 |
| | | and t1.status = #{terms.status} |