Merge remote-tracking branch 'origin/master'

master
ArgonarioD 2022-07-13 16:39:57 +08:00
commit c160793d93
1 changed files with 0 additions and 6 deletions

View File

@ -117,9 +117,6 @@ public class TaskController {
@RequestHeader(TokenUtils.HEADER_TOKEN) String token, @RequestHeader(TokenUtils.HEADER_TOKEN) String token,
@PathVariable Integer projectId @PathVariable Integer projectId
) { ) {
if (!projectService.checkOpenStatus(projectId)) {
throw new BadRequestException(IProjectService.PROJECT_UNOPENED);
}
return ResponseMap.ofSuccess("查询成功", taskService.getProjectProcessOfEveryone(token, projectId)); return ResponseMap.ofSuccess("查询成功", taskService.getProjectProcessOfEveryone(token, projectId));
} }
@ -130,9 +127,6 @@ public class TaskController {
@PathVariable Integer projectId, @PathVariable Integer projectId,
@PathVariable(required = false) Integer staffId @PathVariable(required = false) Integer staffId
) { ) {
if (!projectService.checkOpenStatus(projectId)) {
throw new BadRequestException(IProjectService.PROJECT_UNOPENED);
}
return ResponseList.ofSuccess("查询成功", taskService.getProjectStatistics(token, projectId, staffId)); return ResponseList.ofSuccess("查询成功", taskService.getProjectStatistics(token, projectId, staffId));
} }