| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/selectNum") |
| | | public R selectNum(String serid,String jurisdiction) { |
| | | return R.data(taskqdService.selectNum(serid, jurisdiction)); |
| | | public R selectNum(String serid,String jurisdiction,String workjurisdiction) { |
| | | return R.data(taskqdService.selectNum(serid, jurisdiction,workjurisdiction)); |
| | | } |
| | | |
| | | @GetMapping("/startTask") |
| | |
| | | List<Taskqd> selectList(Integer id); |
| | | List<Map<String, Object>> queryReceiver(String serid); |
| | | List<TaskqdVO> selectLi(String type, String serid,String jurisdiction); |
| | | Integer selectNum(String serid,String jurisdiction); |
| | | List<Map<String, Object>> selectNum(String serid,String jurisdiction,String workjurisdiction); |
| | | String querySerid(String rid); |
| | | } |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectNum" resultType="java.lang.Integer"> |
| | | SELECT COUNT(*) as num |
| | | <select id="selectNum" resultType="java.util.HashMap"> |
| | | SELECT COUNT(*) as num,tasktype |
| | | FROM sys_taskqd qd |
| | | LEFT JOIN sys_jurisdiction j ON j.id = qd.jurisdiction |
| | | WHERE jnum!=num AND qd.rtype = "2" AND |
| | | (!find_in_set(#{serid}, serid) OR serid IS NULL ) |
| | | and (j.id =#{jurisdiction} |
| | | or |
| | | j.parent_id = #{jurisdiction}) |
| | | and (j.id =#{jurisdiction} or j.parent_id = #{jurisdiction}) |
| | | or (j.id =#{workjurisdiction} or j.parent_id = #{workjurisdiction}) |
| | | GROUP BY tasktype |
| | | </select> |
| | | |
| | | <select id="querySerid" resultType="java.lang.String"> |
| | |
| | | List<Taskqd> selectList(Integer id); |
| | | List<Map<String, Object>> queryReceiver(String serid); |
| | | List<TaskqdVO> selectLi(String type, String serid,String jurisdiction); |
| | | Integer selectNum(String serid,String jurisdiction); |
| | | List<Map<String, Object>> selectNum(String serid,String jurisdiction,String workjurisdiction); |
| | | String querySerid(String rid); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Integer selectNum(String serid, String jurisdiction) { |
| | | return baseMapper.selectNum(serid, jurisdiction); |
| | | public List<Map<String, Object>> selectNum(String serid, String jurisdiction,String workjurisdiction) { |
| | | return baseMapper.selectNum(serid, jurisdiction,workjurisdiction); |
| | | } |
| | | |
| | | @Override |