完成了Task的一部分功能
parent
43c1e5fa91
commit
152131c4d7
|
@ -105,12 +105,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