|
|
@ -98,7 +98,10 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
@GetMapping(value = "/getUserInfo") |
|
|
|
@GetMapping(value = "/getUserInfo") |
|
|
|
public Result<UserExt> getUserInfo(Project para,HttpServletRequest req) { |
|
|
|
public Result<UserExt> getUserInfo(Project para,HttpServletRequest req) { |
|
|
|
Project project = projectService.getById(para.getId()); |
|
|
|
Project project = projectService.getById(para.getId()); |
|
|
|
UserExt userExt = userExtService.getOne(new LambdaQueryWrapper<UserExt>().eq(UserExt::getUserId, project.getProjectCharger())); |
|
|
|
UserExt userExt = userExtService.getOne(new LambdaQueryWrapper<UserExt>() |
|
|
|
|
|
|
|
.eq(UserExt::getUserId, project.getProjectCharger()) |
|
|
|
|
|
|
|
.eq(UserExt::getProjectId, para.getId()) |
|
|
|
|
|
|
|
); |
|
|
|
return Result.OK(userExt); |
|
|
|
return Result.OK(userExt); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -108,7 +111,10 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
Project project = projectService.getById(para.getId()); |
|
|
|
Project project = projectService.getById(para.getId()); |
|
|
|
SysUser sysUser = iSysUserService.getById(project.getProjectCharger()); |
|
|
|
SysUser sysUser = iSysUserService.getById(project.getProjectCharger()); |
|
|
|
SysDepart sysDepart = iSysDepartService.getOne(new LambdaQueryWrapper<SysDepart>().eq(SysDepart::getOrgCode, sysUser.getOrgCode())); |
|
|
|
SysDepart sysDepart = iSysDepartService.getOne(new LambdaQueryWrapper<SysDepart>().eq(SysDepart::getOrgCode, sysUser.getOrgCode())); |
|
|
|
DepartExt departExt = iDepartExtService.getOne(new LambdaQueryWrapper<DepartExt>().eq(DepartExt::getDepartId, sysDepart.getId())); |
|
|
|
DepartExt departExt = iDepartExtService.getOne(new LambdaQueryWrapper<DepartExt>() |
|
|
|
|
|
|
|
.eq(DepartExt::getDepartId, sysDepart.getId()) |
|
|
|
|
|
|
|
.eq(DepartExt::getProjectId, para.getId()) |
|
|
|
|
|
|
|
); |
|
|
|
return Result.OK(departExt); |
|
|
|
return Result.OK(departExt); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|