Merge remote-tracking branch 'origin/master'

master
yang.yongquan 2022-07-04 21:13:48 +08:00
commit 12467b6778
1 changed files with 3 additions and 2 deletions

View File

@ -159,12 +159,13 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements IT
task.setTaskId(null);
Integer userLevel=projectGroupService.getUserLevelInGroup(token,task.getTaskProjectId());
if(userLevel==0||(userLevel==1&&task.getTaskFatherId()==0)){
System.out.println(userLevel);
throw new BadRequestException("错误的操作");
}
if(task.checkInsert()){
if(!task.checkInsert()){
throw new BadRequestException("工作项参数错误");
}
if(checkHolder(token,task.getTaskFatherId())){
if(!checkHolder(token,task.getTaskFatherId())){
throw new BadRequestException("非法的父级参数");
}
try{