|
|
@ -122,20 +122,11 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @description: //('科技主管部门待提交', '1');
|
|
|
|
* @description: 申报列表,不同角色可见数据 |
|
|
|
* //('科技主管部门已提交', '2');
|
|
|
|
|
|
|
|
* //('不受理', '3');
|
|
|
|
|
|
|
|
* //('已受理', '4');
|
|
|
|
|
|
|
|
* //('申请人待提交', '5');
|
|
|
|
|
|
|
|
* //('申请单位待提交', '6');
|
|
|
|
|
|
|
|
* //('市科技局待提交', '7');
|
|
|
|
|
|
|
|
* //('市科技局已提交', '8');
|
|
|
|
|
|
|
|
* //('财政主管理部门待审核', '9');
|
|
|
|
|
|
|
|
* //('财政主管理部门审核通过', '10');
|
|
|
|
|
|
|
|
* @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/5 16:25 |
|
|
|
* @date: 24/11/7 14:56 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ApiOperation(value = "项目表-分页列表查询", notes = "项目表-分页列表查询") |
|
|
|
@ApiOperation(value = "项目表-分页列表查询", notes = "项目表-分页列表查询") |
|
|
|
@GetMapping(value = "/list4Audit") |
|
|
|
@GetMapping(value = "/list4Audit") |
|
|
@ -165,6 +156,9 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
//('市科技局已提交', '8');
|
|
|
|
//('市科技局已提交', '8');
|
|
|
|
//('财政主管理部门待审核', '9');
|
|
|
|
//('财政主管理部门待审核', '9');
|
|
|
|
//('财政主管理部门审核通过', '10');
|
|
|
|
//('财政主管理部门审核通过', '10');
|
|
|
|
|
|
|
|
// 11 已立项
|
|
|
|
|
|
|
|
// 12 已验收
|
|
|
|
|
|
|
|
//13 已结项
|
|
|
|
|
|
|
|
|
|
|
|
//申请人数据
|
|
|
|
//申请人数据
|
|
|
|
if ("shenbaoren_role".equals(loginUser.getRoleCode())) { |
|
|
|
if ("shenbaoren_role".equals(loginUser.getRoleCode())) { |
|
|
@ -227,7 +221,7 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
//13 已结项
|
|
|
|
//13 已结项
|
|
|
|
|
|
|
|
|
|
|
|
//财政管理员看到要立项的数据
|
|
|
|
//财政管理员看到要立项的数据
|
|
|
|
if ("caizheng_admin".equals(loginUser.getRoleCode())) { |
|
|
|
if ("kejiju_admin".equals(loginUser.getRoleCode())) { |
|
|
|
queryWrapper.in("budget_status", 10, 11); |
|
|
|
queryWrapper.in("budget_status", 10, 11); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
queryWrapper.in("project_status", 11); |
|
|
|
queryWrapper.in("project_status", 11); |
|
|
@ -271,7 +265,7 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
//13 已结项
|
|
|
|
//13 已结项
|
|
|
|
|
|
|
|
|
|
|
|
//财政管理可以看到要验收的数据
|
|
|
|
//财政管理可以看到要验收的数据
|
|
|
|
if ("caizheng_admin".equals(loginUser.getRoleCode())) { |
|
|
|
if ("kejiju_admin".equals(loginUser.getRoleCode())) { |
|
|
|
queryWrapper.in("project_status", 11, 12); |
|
|
|
queryWrapper.in("project_status", 11, 12); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
queryWrapper.in("project_status", 12); |
|
|
|
queryWrapper.in("project_status", 12); |
|
|
@ -303,7 +297,7 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
//13 已结项
|
|
|
|
//13 已结项
|
|
|
|
|
|
|
|
|
|
|
|
//财政管理可以看到要验收的数据
|
|
|
|
//财政管理可以看到要验收的数据
|
|
|
|
if ("caizheng_admin".equals(loginUser.getRoleCode())) { |
|
|
|
if ("kejiju_admin".equals(loginUser.getRoleCode())) { |
|
|
|
queryWrapper.in("project_status", 12, 13); |
|
|
|
queryWrapper.in("project_status", 12, 13); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
queryWrapper.in("project_status", 13); |
|
|
|
queryWrapper.in("project_status", 13); |
|
|
@ -312,10 +306,40 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
return Result.OK(pageList); |
|
|
|
return Result.OK(pageList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @description: 市科技局立项、验收、结项审核流程 |
|
|
|
|
|
|
|
* @param: [param, req] |
|
|
|
|
|
|
|
* @return: org.jeecg.common.api.vo.Result<org.jeecg.modules.demo.project.entity.Project> |
|
|
|
|
|
|
|
* @author: z.h.c |
|
|
|
|
|
|
|
* @date: 24/11/7 14:44 |
|
|
|
|
|
|
|
*/ |
|
|
|
@ApiOperation(value = "项目表-更新状态", notes = "项目表-更新状态") |
|
|
|
@ApiOperation(value = "项目表-更新状态", notes = "项目表-更新状态") |
|
|
|
@PostMapping(value = "/updateStatus") |
|
|
|
@PostMapping(value = "/updateStatus") |
|
|
|
public Result<Project> updateStatus(@RequestBody Project param, HttpServletRequest req) { |
|
|
|
public Result<Project> updateStatus(@RequestBody Project param, HttpServletRequest req) { |
|
|
|
|
|
|
|
Project project = projectService.getById(param.getId()); |
|
|
|
projectService.updateById(param); |
|
|
|
projectService.updateById(param); |
|
|
|
|
|
|
|
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
|
|
|
|
|
|
|
ProjectLog log = new ProjectLog(); |
|
|
|
|
|
|
|
log.setOperatorName(loginUser.getRealname()); |
|
|
|
|
|
|
|
log.setOperatorId(loginUser.getId()); |
|
|
|
|
|
|
|
log.setProjectId(project.getId()); |
|
|
|
|
|
|
|
log.setProjectName(project.getProjectName()); |
|
|
|
|
|
|
|
log.setOperationTime(new Date()); |
|
|
|
|
|
|
|
log.setProjectStatus(param.getProjectStatus()); |
|
|
|
|
|
|
|
log.setBudgetStatus(param.getBudgetStatus()); |
|
|
|
|
|
|
|
// 11 已立项
|
|
|
|
|
|
|
|
// 12 已验收
|
|
|
|
|
|
|
|
//13 已结项
|
|
|
|
|
|
|
|
if ("11".equals(param.getProjectStatus())) { |
|
|
|
|
|
|
|
log.setOperationMark("市科技局立项"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if ("12".equals(param.getProjectStatus())) { |
|
|
|
|
|
|
|
log.setOperationMark("市科技局验收"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if ("13".equals(param.getProjectStatus())) { |
|
|
|
|
|
|
|
log.setOperationMark("市科技局结项"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
iProjectLogService.save(log); |
|
|
|
return Result.OK("操作成功"); |
|
|
|
return Result.OK("操作成功"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|