| | |
| | | <!-- 查询任务数量 --> |
| | | <select id="countTaskList" resultMap="FrontPageCountResult"> |
| | | 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 (node_id = 'ZJ_DFP' or node_id = 'QJ_DFP' or node_id = 'SJ_DFP') and sign_status != 1 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_DSL' or node_id = 'SJ_DSL') and sign_status != 1 then id end) as waitAccept, |
| | | count(case when node_id = 'BLFK' then id end) as Processing |
| | |
| | | where |
| | | cande_unit_id = #{terms.candeUnitId} |
| | | and (t1.node_id = 'ZJ_DFP' or t1.node_id = 'QJ_DFP' or t1.node_id = 'SJ_DFP') |
| | | and sign_status != 1 |
| | | and t1.delete_status = 0 |
| | | and t1.status = #{terms.status} |
| | | <if test="terms.timeStart != null and terms.timeStart !='' and terms.timeEnd != null and terms.timeEnd !=''"> |
| | |
| | | where |
| | | t1.cande_unit_id = #{terms.candeUnitId} |
| | | and (t1.node_id = 'ZJ_DFP' or t1.node_id = 'QJ_DFP' or t1.node_id = 'SJ_DFP') |
| | | and sign_status != 1 |
| | | and t1.delete_status = 0 |
| | | and t1.status = #{terms.status} |
| | | <if test="terms.timeStart != null and terms.timeStart !='' and terms.timeEnd != null and terms.timeEnd !=''"> |