|
|
@ -192,7 +192,7 @@ public class ProjectController { |
|
|
|
@ApiOperation(value = "获取巡检项目下的机构") |
|
|
|
@ApiOperation(value = "获取巡检项目下的机构") |
|
|
|
@ApiOperationSupport(order = 9) |
|
|
|
@ApiOperationSupport(order = 9) |
|
|
|
public R<List> getProjectDept() { |
|
|
|
public R<List> getProjectDept() { |
|
|
|
QueryWrapper<ProjectEntity> queryWrapper = Wrappers.<ProjectEntity>query().select("distinct create_dept deptId"); |
|
|
|
QueryWrapper<ProjectEntity> queryWrapper = Wrappers.<ProjectEntity>query().select("distinct create_dept"); |
|
|
|
List<Long> deptIdList = projectService.listObjs(queryWrapper, Func::toLong); |
|
|
|
List<Long> deptIdList = projectService.listObjs(queryWrapper, Func::toLong); |
|
|
|
List<HashMap> result = deptIdList.stream().map(deptId -> new HashMap() {{ |
|
|
|
List<HashMap> result = deptIdList.stream().map(deptId -> new HashMap() {{ |
|
|
|
put("deptId", deptId); |
|
|
|
put("deptId", deptId); |
|
|
|