sph&sys
parent
b42b6b0b77
commit
4ca6b5a164
|
@ -18,11 +18,11 @@ import java.util.List;
|
|||
@RequestMapping("/project/type")
|
||||
public class ProjectTypeController {
|
||||
@Autowired
|
||||
private IProjectTypeService projectTypeServiceImpl;
|
||||
private IProjectTypeService projectTypeService;
|
||||
|
||||
@GetMapping
|
||||
public ResponseList<ProjectType> getAllProjectType() {
|
||||
List<ProjectType> res = projectTypeServiceImpl.findAllProjectType();
|
||||
List<ProjectType> res = projectTypeService.findAllProjectType();
|
||||
return ResponseList.ofSuccess("获得所有类成功", res);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,4 +49,4 @@ public class TaskController {
|
|||
task = taskService.insertTask(token, task);
|
||||
return ResponseMap.ofSuccess("新建成功", task);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -15,7 +15,6 @@ import java.util.List;
|
|||
*/
|
||||
@Service
|
||||
public class ProjectTypeServiceImpl extends ServiceImpl<ProjectTypeMapper, ProjectType> implements IProjectTypeService {
|
||||
|
||||
@Override
|
||||
public List<ProjectType> findAllProjectType() {
|
||||
return baseMapper.selectList(Wrappers.<ProjectType>lambdaQuery().ne(ProjectType::getProjectClassId, 0));
|
||||
|
|
|
@ -29,6 +29,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements IT
|
|||
@Autowired
|
||||
private ProjectGroupServiceImpl projectGroupService;
|
||||
|
||||
//FIXME: 抛出未授权异常
|
||||
@Override
|
||||
public List<Task> getTaskList(String token, Integer projectId, Long fatherId) throws BadRequestException {
|
||||
if (projectGroupService.getUserLevelInGroup(token, projectId) == 0 || fatherId == null) {
|
||||
|
|
Loading…
Reference in New Issue