| | |
| | | /** |
| | | * 任务表 修改 |
| | | */ |
| | | @PostMapping("/update") |
| | | @PostMapping("/removeTask") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "修改", notes = "传入task") |
| | | public R update(@Valid @RequestBody TaskEntity task) { |
| | | return R.status(taskService.updateById(task)); |
| | | return R.status(taskService.removeTask(task)); |
| | | } |
| | | |
| | | /** |
| | |
| | | return R.status(taskService.deleteLogic(Func.toLongList(ids))); |
| | | } |
| | | |
| | | @PostMapping("/countNumber") |
| | | @GetMapping("/countNumber") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "统计用户标签报事数量") |
| | | public R countNumber(@RequestParam(value = "houseCode",required = false) String houseCode, @RequestParam(value = "status",required = false) Integer status) { |
| | | public R countNumber(@RequestParam(value = "houseCode", required = false) String houseCode, @RequestParam(value = "status", required = false) Integer status) { |
| | | return R.data(taskService.countNumber(houseCode, status)); |
| | | } |
| | | |
| | |
| | | @GetMapping("/countTypeNumber") |
| | | @ApiOperationSupport(order = 9) |
| | | @ApiOperation(value = "统计类型数量") |
| | | public R countTypeNumber() { |
| | | return R.data(taskService.countTypeNumber()); |
| | | public R countTypeNumber(@RequestParam(value = "neiCode", required = false) String neiCode, @RequestParam(value = "roleType", defaultValue = "0") Integer roleType) { |
| | | return R.data(taskService.countTypeNumber(roleType, neiCode)); |
| | | } |
| | | |
| | | |