|
|
@ -124,7 +124,7 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
/** |
|
|
|
/** |
|
|
|
* @description: 申报列表,不同角色可见数据 |
|
|
|
* @description: 申报列表,不同角色可见数据 |
|
|
|
* @param: [project, pageNo, pageSize, req] |
|
|
|
* @param: [project, pageNo, pageSize, req] |
|
|
|
* @return: org.jeecg.common.api.vo.Result<com.baomidou.mybatisplus.core.metadata.IPage<org.jeecg.modules.demo.project.entity.Project>> |
|
|
|
* @return: org.jeecg.common.api.vo.Result<com.baomidou.mybatisplus.core.metadata.IPage < org.jeecg.modules.demo.project.entity.Project>> |
|
|
|
* @author: z.h.c |
|
|
|
* @author: z.h.c |
|
|
|
* @date: 24/11/7 14:56 |
|
|
|
* @date: 24/11/7 14:56 |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -303,11 +303,10 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
queryWrapper.in("project_status", 12); |
|
|
|
queryWrapper.in("project_status", 12); |
|
|
|
} |
|
|
|
} |
|
|
|
if ("kejiju_admin".equals(loginUser.getRoleCode())) { |
|
|
|
if ("kejiju_admin".equals(loginUser.getRoleCode())) { |
|
|
|
queryWrapper.in("budget_status", 11,12); |
|
|
|
queryWrapper.in("budget_status", 11, 12); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IPage<Project> pageList = projectService.page(page, queryWrapper); |
|
|
|
IPage<Project> pageList = projectService.page(page, queryWrapper); |
|
|
|
return Result.OK(pageList); |
|
|
|
return Result.OK(pageList); |
|
|
|
} |
|
|
|
} |
|
|
@ -357,7 +356,7 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
queryWrapper.in("project_status", 13); |
|
|
|
queryWrapper.in("project_status", 13); |
|
|
|
} |
|
|
|
} |
|
|
|
if ("kejiju_admin".equals(loginUser.getRoleCode())) { |
|
|
|
if ("kejiju_admin".equals(loginUser.getRoleCode())) { |
|
|
|
queryWrapper.in("budget_status", 12,13); |
|
|
|
queryWrapper.in("budget_status", 12, 13); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
IPage<Project> pageList = projectService.page(page, queryWrapper); |
|
|
|
IPage<Project> pageList = projectService.page(page, queryWrapper); |
|
|
@ -420,7 +419,7 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
ProjectType projectType = iProjectTypeService.getById(project.getProjectTypeid()); |
|
|
|
ProjectType projectType = iProjectTypeService.getById(project.getProjectTypeid()); |
|
|
|
project.setAnnualName(projectType.getAnnualName()); |
|
|
|
project.setAnnualName(projectType.getAnnualName()); |
|
|
|
project.setProjectTypeName(projectType.getTypeName()); |
|
|
|
project.setProjectTypeName(projectType.getTypeName()); |
|
|
|
SysDepart sysDepart = iSysDepartService.getById(project.getSysOrgCode()); |
|
|
|
SysDepart sysDepart = iSysDepartService.getOne(new LambdaQueryWrapper<SysDepart>().eq(SysDepart::getOrgCode,project.getSysOrgCode())); |
|
|
|
project.setDepartName(sysDepart.getDepartName()); |
|
|
|
project.setDepartName(sysDepart.getDepartName()); |
|
|
|
SysUser sysUser = iSysUserService.getById(project.getProjectCharger()); |
|
|
|
SysUser sysUser = iSysUserService.getById(project.getProjectCharger()); |
|
|
|
project.setProjectCharger(sysUser.getRealname()); |
|
|
|
project.setProjectCharger(sysUser.getRealname()); |
|
|
@ -434,7 +433,8 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
ProjectType projectType = iProjectTypeService.getById(project.getProjectTypeid()); |
|
|
|
ProjectType projectType = iProjectTypeService.getById(project.getProjectTypeid()); |
|
|
|
project.setAnnualName(projectType.getAnnualName()); |
|
|
|
project.setAnnualName(projectType.getAnnualName()); |
|
|
|
project.setProjectTypeName(projectType.getTypeName()); |
|
|
|
project.setProjectTypeName(projectType.getTypeName()); |
|
|
|
SysDepart sysDepart = iSysDepartService.getById(project.getSysOrgCode()); |
|
|
|
// SysDepart sysDepart = iSysDepartService.getById(project.getSysOrgCode());
|
|
|
|
|
|
|
|
SysDepart sysDepart = iSysDepartService.getOne(new LambdaQueryWrapper<SysDepart>().eq(SysDepart::getOrgCode,project.getSysOrgCode())); |
|
|
|
project.setDepartName(sysDepart.getDepartName()); |
|
|
|
project.setDepartName(sysDepart.getDepartName()); |
|
|
|
SysUser sysUser = iSysUserService.getById(project.getProjectCharger()); |
|
|
|
SysUser sysUser = iSysUserService.getById(project.getProjectCharger()); |
|
|
|
project.setProjectCharger(sysUser.getRealname()); |
|
|
|
project.setProjectCharger(sysUser.getRealname()); |
|
|
@ -522,8 +522,12 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
Depadminlx depadminlx = iDepadminlxService.getOne(new LambdaQueryWrapper<Depadminlx>().eq(Depadminlx::getDepid, project.getSysOrgCode())); |
|
|
|
Depadminlx depadminlx = iDepadminlxService.getOne(new LambdaQueryWrapper<Depadminlx>().eq(Depadminlx::getDepid, project.getSysOrgCode())); |
|
|
|
DepartExtDto2 dto = new DepartExtDto2(); |
|
|
|
DepartExtDto2 dto = new DepartExtDto2(); |
|
|
|
BeanUtils.copyProperties(sysDepart, dto); |
|
|
|
BeanUtils.copyProperties(sysDepart, dto); |
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(departExt)) { |
|
|
|
BeanUtils.copyProperties(departExt, dto); |
|
|
|
BeanUtils.copyProperties(departExt, dto); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(depadminlx)) { |
|
|
|
BeanUtils.copyProperties(depadminlx, dto); |
|
|
|
BeanUtils.copyProperties(depadminlx, dto); |
|
|
|
|
|
|
|
} |
|
|
|
ProjectType projectType = iProjectTypeService.getById(project.getProjectTypeid()); |
|
|
|
ProjectType projectType = iProjectTypeService.getById(project.getProjectTypeid()); |
|
|
|
dto.setAnnualName(projectType.getAnnualName()); |
|
|
|
dto.setAnnualName(projectType.getAnnualName()); |
|
|
|
List<DictModel> dictModels = sysBaseApi.queryDictItemsByCode("depart_type"); |
|
|
|
List<DictModel> dictModels = sysBaseApi.queryDictItemsByCode("depart_type"); |
|
|
|