|
|
|
@ -122,20 +122,11 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @description: //('科技主管部门待提交', '1');
|
|
|
|
|
* //('科技主管部门已提交', '2');
|
|
|
|
|
* //('不受理', '3');
|
|
|
|
|
* //('已受理', '4');
|
|
|
|
|
* //('申请人待提交', '5');
|
|
|
|
|
* //('申请单位待提交', '6');
|
|
|
|
|
* //('市科技局待提交', '7');
|
|
|
|
|
* //('市科技局已提交', '8');
|
|
|
|
|
* //('财政主管理部门待审核', '9');
|
|
|
|
|
* //('财政主管理部门审核通过', '10');
|
|
|
|
|
* @description: 申报列表,不同角色可见数据 |
|
|
|
|
* @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 |
|
|
|
|
* @date: 24/11/5 16:25 |
|
|
|
|
* @date: 24/11/7 14:56 |
|
|
|
|
*/ |
|
|
|
|
@ApiOperation(value = "项目表-分页列表查询", notes = "项目表-分页列表查询") |
|
|
|
|
@GetMapping(value = "/list4Audit") |
|
|
|
@ -165,6 +156,9 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
|
//('市科技局已提交', '8');
|
|
|
|
|
//('财政主管理部门待审核', '9');
|
|
|
|
|
//('财政主管理部门审核通过', '10');
|
|
|
|
|
// 11 已立项
|
|
|
|
|
// 12 已验收
|
|
|
|
|
//13 已结项
|
|
|
|
|
|
|
|
|
|
//申请人数据
|
|
|
|
|
if ("shenbaoren_role".equals(loginUser.getRoleCode())) { |
|
|
|
@ -197,9 +191,9 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
|
@GetMapping(value = "/list4LiXiang") |
|
|
|
|
// @PermissionData(pageComponent = "projectApplication/productAudit/project4AuditList")
|
|
|
|
|
public Result<IPage<Project>> list4LiXiang(Project project, |
|
|
|
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
|
|
|
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
|
|
|
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
// 自定义查询规则
|
|
|
|
|
Map<String, QueryRuleEnum> customeRuleMap = new HashMap<>(); |
|
|
|
|
// 自定义多选的查询规则为:LIKE_WITH_OR
|
|
|
|
@ -227,9 +221,9 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
|
//13 已结项
|
|
|
|
|
|
|
|
|
|
//财政管理员看到要立项的数据
|
|
|
|
|
if ("caizheng_admin".equals(loginUser.getRoleCode())) { |
|
|
|
|
queryWrapper.in("budget_status", 10,11); |
|
|
|
|
}else { |
|
|
|
|
if ("kejiju_admin".equals(loginUser.getRoleCode())) { |
|
|
|
|
queryWrapper.in("budget_status", 10, 11); |
|
|
|
|
} else { |
|
|
|
|
queryWrapper.in("project_status", 11); |
|
|
|
|
} |
|
|
|
|
IPage<Project> pageList = projectService.page(page, queryWrapper); |
|
|
|
@ -241,9 +235,9 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
|
@GetMapping(value = "/list4YanShou") |
|
|
|
|
// @PermissionData(pageComponent = "projectApplication/productAudit/project4AuditList")
|
|
|
|
|
public Result<IPage<Project>> list4YanShou(Project project, |
|
|
|
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
|
|
|
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
|
|
|
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
// 自定义查询规则
|
|
|
|
|
Map<String, QueryRuleEnum> customeRuleMap = new HashMap<>(); |
|
|
|
|
// 自定义多选的查询规则为:LIKE_WITH_OR
|
|
|
|
@ -271,9 +265,9 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
|
//13 已结项
|
|
|
|
|
|
|
|
|
|
//财政管理可以看到要验收的数据
|
|
|
|
|
if ("caizheng_admin".equals(loginUser.getRoleCode())) { |
|
|
|
|
queryWrapper.in("project_status", 11,12); |
|
|
|
|
}else { |
|
|
|
|
if ("kejiju_admin".equals(loginUser.getRoleCode())) { |
|
|
|
|
queryWrapper.in("project_status", 11, 12); |
|
|
|
|
} else { |
|
|
|
|
queryWrapper.in("project_status", 12); |
|
|
|
|
} |
|
|
|
|
IPage<Project> pageList = projectService.page(page, queryWrapper); |
|
|
|
@ -284,9 +278,9 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
|
@GetMapping(value = "/list4JieXiang") |
|
|
|
|
// @PermissionData(pageComponent = "projectApplication/productAudit/project4AuditList")
|
|
|
|
|
public Result<IPage<Project>> list4JieXiang(Project project, |
|
|
|
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
|
|
|
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
|
|
|
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
// 自定义查询规则
|
|
|
|
|
Map<String, QueryRuleEnum> customeRuleMap = new HashMap<>(); |
|
|
|
|
// 自定义多选的查询规则为:LIKE_WITH_OR
|
|
|
|
@ -303,19 +297,49 @@ public class ProjectController extends JeecgController<Project, IProjectService> |
|
|
|
|
//13 已结项
|
|
|
|
|
|
|
|
|
|
//财政管理可以看到要验收的数据
|
|
|
|
|
if ("caizheng_admin".equals(loginUser.getRoleCode())) { |
|
|
|
|
queryWrapper.in("project_status", 12,13); |
|
|
|
|
}else { |
|
|
|
|
if ("kejiju_admin".equals(loginUser.getRoleCode())) { |
|
|
|
|
queryWrapper.in("project_status", 12, 13); |
|
|
|
|
} else { |
|
|
|
|
queryWrapper.in("project_status", 13); |
|
|
|
|
} |
|
|
|
|
IPage<Project> pageList = projectService.page(page, queryWrapper); |
|
|
|
|
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 = "项目表-更新状态") |
|
|
|
|
@PostMapping(value = "/updateStatus") |
|
|
|
|
public Result<Project> updateStatus(@RequestBody Project param, HttpServletRequest req) { |
|
|
|
|
Project project = projectService.getById(param.getId()); |
|
|
|
|
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("操作成功"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|