Merge remote-tracking branch 'origin/master'
commit
12467b6778
|
@ -159,12 +159,13 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements IT
|
||||||
task.setTaskId(null);
|
task.setTaskId(null);
|
||||||
Integer userLevel=projectGroupService.getUserLevelInGroup(token,task.getTaskProjectId());
|
Integer userLevel=projectGroupService.getUserLevelInGroup(token,task.getTaskProjectId());
|
||||||
if(userLevel==0||(userLevel==1&&task.getTaskFatherId()==0)){
|
if(userLevel==0||(userLevel==1&&task.getTaskFatherId()==0)){
|
||||||
|
System.out.println(userLevel);
|
||||||
throw new BadRequestException("错误的操作");
|
throw new BadRequestException("错误的操作");
|
||||||
}
|
}
|
||||||
if(task.checkInsert()){
|
if(!task.checkInsert()){
|
||||||
throw new BadRequestException("工作项参数错误");
|
throw new BadRequestException("工作项参数错误");
|
||||||
}
|
}
|
||||||
if(checkHolder(token,task.getTaskFatherId())){
|
if(!checkHolder(token,task.getTaskFatherId())){
|
||||||
throw new BadRequestException("非法的父级参数");
|
throw new BadRequestException("非法的父级参数");
|
||||||
}
|
}
|
||||||
try{
|
try{
|
||||||
|
|
Loading…
Reference in New Issue