| | |
| | | package com.ycl.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.common.base.Result; |
| | | import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper; |
| | | import com.ycl.common.utils.SecurityUtils; |
| | | import com.ycl.domain.entity.ProjectPlanExamineRecord; |
| | | import com.ycl.framework.utils.PageUtil; |
| | | import com.ycl.domain.vo.DepartmentApprovalResponseVO; |
| | | import com.ycl.mapper.ProjectPlanExamineRecordMapper; |
| | | import com.ycl.service.ProjectPlanExamineRecordService; |
| | | |
| | | import com.ycl.common.base.Result; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.domain.form.ProjectPlanExamineRecordForm; |
| | | import com.ycl.domain.vo.ProjectPlanExamineRecordVO; |
| | | import com.ycl.domain.query.ProjectPlanExamineRecordQuery; |
| | | import org.springframework.stereotype.Service; |
| | | import lombok.RequiredArgsConstructor; |
| | | |
| | | import com.ycl.framework.utils.PageUtil; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.util.Assert; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos); |
| | | } |
| | | |
| | | @Override |
| | | public Result departmentApproval(Integer projectPlanRecordId) { |
| | | List<DepartmentApprovalResponseVO> vo =baseMapper.selectInfo(projectPlanRecordId); |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | @Override |
| | | public Result planLog(Integer projectPlanRecordId) { |
| | | List<DepartmentApprovalResponseVO> vo =baseMapper.getPlanLog(projectPlanRecordId); |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | /** |
| | | * 回复审批事项 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result replyExamine(ProjectPlanExamineRecordForm form) { |
| | | ProjectPlanExamineRecord projectPlanExamineRecord = ProjectPlanExamineRecordForm.getEntityByForm(form, null); |
| | | projectPlanExamineRecord.setId(form.getId().longValue()); |
| | | projectPlanExamineRecord.setDepartmentUserId(SecurityUtils.getUserId()); |
| | | projectPlanExamineRecord.setManagerUserId(SecurityUtils.getUserId()); |
| | | baseMapper.updateById(projectPlanExamineRecord); |
| | | return Result.ok("回复成功"); |
| | | } |
| | | |
| | | @Override |
| | | public Result saveExamine(ProjectPlanExamineRecordForm form) { |
| | | ProjectPlanExamineRecord projectPlanExamineRecord = ProjectPlanExamineRecordForm.getEntityByForm(form, null); |
| | | projectPlanExamineRecord.setDepartmentUserId(SecurityUtils.getUserId()); |
| | | projectPlanExamineRecord.setManagerUserId(SecurityUtils.getUserId()); |
| | | baseMapper.updateById(projectPlanExamineRecord); |
| | | return Result.ok("回复成功"); |
| | | } |
| | | } |