| | |
| | | limit #{page.offset}, #{page.size} |
| | | </select> |
| | | |
| | | <!-- 结果集--> |
| | | <resultMap id="FrontPageCountResult" type="cn.huge.module.cases.domain.dto.FrontPageCountDTO"> |
| | | <result property="waitSign" column="waitSign"/> |
| | | <result property="waitAccept" column="waitAccept"/> |
| | | <result property="waitAccept" column="waitAccept"/> |
| | | </resultMap> |
| | | <!-- 查询任务数量 --> |
| | | <select id="countTaskList" resultMap="FrontPageCountResult"> |
| | | select |
| | | count(case when sign_status = 1 then id end) as waitSign, |
| | | count(case when node_id = then id end) as waitAccept, |
| | | count(case when node_id = then id end) as Processing |
| | | from |
| | | <include refid="table-name" /> |
| | | where |
| | | cande_unit_id = #{terms.candeUnitId} |
| | | and (cande_dept_id = #{terms.candeDeptId} or cande_dept_id is null) |
| | | and delete_status = '0' |
| | | and status = '1' |
| | | </select> |
| | | </mapper> |