| | |
| | | import com.ycl.domain.entity.ProjectPlanExamineRecord; |
| | | import com.ycl.domain.entity.ProjectPlanRecord; |
| | | import com.ycl.domain.vo.DepartmentApprovalResponseVO; |
| | | import com.ycl.domain.vo.ProjectProcessToDoVo; |
| | | import com.ycl.mapper.ProjectPlanExamineRecordMapper; |
| | | import com.ycl.mapper.ProjectPlanRecordMapper; |
| | | import com.ycl.service.ProjectPlanExamineRecordService; |
| | |
| | | |
| | | /** |
| | | * 添加 |
| | | * |
| | | * @param form |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 修改 |
| | | * |
| | | * @param form |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * id删除 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param query |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 根据id查找 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 列表 |
| | | * |
| | | * @return |
| | | */ |
| | | @Override |
| | |
| | | |
| | | @Override |
| | | public Result departmentApproval(Integer projectPlanRecordId) { |
| | | List<DepartmentApprovalResponseVO> vo =baseMapper.selectInfo(projectPlanRecordId); |
| | | List<DepartmentApprovalResponseVO> vo = baseMapper.selectInfo(projectPlanRecordId); |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | @Override |
| | | public Result planLog(Integer projectPlanRecordId) { |
| | | List<DepartmentApprovalResponseVO> vo =baseMapper.getPlanLog(projectPlanRecordId); |
| | | List<DepartmentApprovalResponseVO> vo = baseMapper.getPlanLog(projectPlanRecordId); |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | /** |
| | | * 回复审批事项 |
| | | * |
| | | * @param form |
| | | * @return |
| | | */ |
| | |
| | | @Override |
| | | public Result saveExamine(ProjectPlanExamineRecordForm form) { |
| | | // 判断,如果都同意,则直接更新审批记录 |
| | | if (null != form.getDepartmentExamine() && null != form.getManageExamine() && form.getDepartmentExamine() == 0 && form.getManageExamine() == 0){ |
| | | if (null != form.getDepartmentExamine() && null != form.getManageExamine() && form.getDepartmentExamine() == 0 && form.getManageExamine() == 0) { |
| | | ProjectPlanExamineRecord projectPlanExamineRecord = ProjectPlanExamineRecordForm.getEntityByForm(form, null); |
| | | projectPlanExamineRecord.setId(form.getId().longValue()); |
| | | projectPlanExamineRecord.setDepartmentUserId(SecurityUtils.getUserId()); |
| | |
| | | // 否则,将项目记录设置为未上报,并将记录逻辑删除 |
| | | new LambdaUpdateChainWrapper<>(projectPlanRecordMapper) |
| | | .eq(ProjectPlanRecord::getId, form.getProjectPlanRecordId()) |
| | | .set(ProjectPlanRecord::getReportStatus,1); |
| | | .set(ProjectPlanRecord::getReportStatus, 1); |
| | | new LambdaUpdateChainWrapper<>(baseMapper) |
| | | .eq(ProjectPlanExamineRecord::getProjectPlanRecordId, form.getProjectPlanRecordId()) |
| | | .remove(); |
| | | return Result.ok("回复成功"); |
| | | } |
| | | |
| | | @Override |
| | | public Result todoList(Long userId, ProjectPlanExamineRecordQuery query) { |
| | | |
| | | IPage<ProjectProcessToDoVo> page = PageUtil.getPage(query, ProjectProcessToDoVo.class); |
| | | |
| | | baseMapper.todoList(page, query, userId); |
| | | return Result.ok().data(page.getRecords()).total(page.getTotal()); |
| | | } |
| | | } |