| | |
| | | * @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") |
| | | public R<Map> startTask(String rid, String serid,String type,String data) { |
| | | //获取组员id并进行通知 |
| | | Map<String, Object> map = new HashMap<>(); |
| | | int msg = pushMsgService.startTask(serid, rid,type); |
| | | |
| | | serid = taskqdService.querySerid(rid); |
| | | |
| | | int msg = pushMsgService.startTask(serid, rid,type,data); |
| | | map.put("res", msg); |
| | | map.put("type", type); |
| | | map.put("data",data); |
| | | taskqdService.updateRtype("0",rid); |
| | | if (!type.equals("stop")){ |
| | | taskqdService.updateRtype("0",rid); |
| | | } |
| | | return R.data(map); |
| | | } |
| | | |