|
@@ -1,13 +1,9 @@
|
|
|
package com.ozs.plan.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
-import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
-import com.ozs.base.domain.BasePolicy;
|
|
|
-import com.ozs.common.constant.Constants;
|
|
|
import com.ozs.common.core.domain.AjaxResult;
|
|
|
import com.ozs.common.core.domain.entity.SysDept;
|
|
|
import com.ozs.common.core.domain.entity.SysUser;
|
|
@@ -23,9 +19,11 @@ import com.ozs.common.utils.StringUtils;
|
|
|
import com.ozs.common.utils.bean.BeanUtils;
|
|
|
import com.ozs.plan.doman.PlanYears;
|
|
|
import com.ozs.plan.doman.ProvisionalPlan;
|
|
|
+import com.ozs.plan.doman.vo.requestVo.PlanQuarterStandardVo;
|
|
|
import com.ozs.plan.doman.vo.requestVo.ProvisionalPlanVo;
|
|
|
import com.ozs.plan.mapper.PlanYearsMapper;
|
|
|
import com.ozs.plan.mapper.ProvisionalPlanMapper;
|
|
|
+import com.ozs.plan.service.PlanQuarterService;
|
|
|
import com.ozs.plan.service.ProvisionalPlanService;
|
|
|
import com.ozs.pm.doman.PmAuditDeptRef;
|
|
|
import com.ozs.pm.doman.PmDemand;
|
|
@@ -77,6 +75,8 @@ public class ProvisionalPlanServiceImpl extends ServiceImpl<ProvisionalPlanMappe
|
|
|
private ISysUserService userService;
|
|
|
@Autowired
|
|
|
private PmAuditDeptRefService pmAuditDeptRefService;
|
|
|
+ @Autowired
|
|
|
+ private PlanQuarterService quarterService;
|
|
|
|
|
|
@Override
|
|
|
public int deleteProvisionalPlanById(Long planPracticalId) {
|
|
@@ -420,18 +420,9 @@ public class ProvisionalPlanServiceImpl extends ServiceImpl<ProvisionalPlanMappe
|
|
|
}
|
|
|
|
|
|
//上传审核文件
|
|
|
- List<SysFileRef> sysFileRefss = provisionalPlanVo.getSysFileRefs();
|
|
|
- if (!ObjectUtils.isEmpty(sysFileRefss)) {
|
|
|
- for (SysFileRef ref : sysFileRefss) {
|
|
|
- ref.setRedId(provisionalPlanVo.getPlanPracticalId().longValue());
|
|
|
- ref.setType(SysFileRefEnum.PLAN_TEMPORARY_EXAMINE.getType());
|
|
|
- ref.setCreated(provisionalPlanVo.getUpdated());
|
|
|
- ref.setCreateTime(now);
|
|
|
- ref.setUpdated(provisionalPlanVo.getUpdated());
|
|
|
- ref.setUpdateTime(now);
|
|
|
- sysFileRefMapper.insert(ref);
|
|
|
- }
|
|
|
- }
|
|
|
+ PlanQuarterStandardVo standardVo = new PlanQuarterStandardVo();
|
|
|
+ BeanUtils.copyProperties(provisionalPlanVo, standardVo);
|
|
|
+ quarterService.upExamineFile(standardVo);
|
|
|
if (flay) {
|
|
|
PmDemand demand = new PmDemand();
|
|
|
BeanUtils.copyProperties(byId, demand);
|
|
@@ -481,21 +472,11 @@ public class ProvisionalPlanServiceImpl extends ServiceImpl<ProvisionalPlanMappe
|
|
|
|
|
|
@Override
|
|
|
public AjaxResult auditNoPass(ProvisionalPlanVo provisionalPlanVo) {
|
|
|
- Date now = new Date();
|
|
|
- provisionalPlanVo.setProjectStatus(ProjectStatus.PLANTOBACK.getCode());
|
|
|
+ PlanQuarterStandardVo standardVo = new PlanQuarterStandardVo();
|
|
|
+ BeanUtils.copyProperties(provisionalPlanVo, standardVo);
|
|
|
//上传审核文件并赋予计划审核退回
|
|
|
- List<SysFileRef> sysFileRefuses = provisionalPlanVo.getSysFileRefs();
|
|
|
- if (!ObjectUtils.isEmpty(sysFileRefuses)) {
|
|
|
- for (SysFileRef ref : sysFileRefuses) {
|
|
|
- ref.setRedId(provisionalPlanVo.getPlanPracticalId());
|
|
|
- ref.setType(SysFileRefEnum.PLAN_TEMPORARY_EXAMINE.getType());
|
|
|
- ref.setCreated(provisionalPlanVo.getUpdated());
|
|
|
- ref.setCreateTime(now);
|
|
|
- ref.setUpdated(provisionalPlanVo.getUpdated());
|
|
|
- ref.setUpdateTime(now);
|
|
|
- sysFileRefMapper.insert(ref);
|
|
|
- }
|
|
|
- }
|
|
|
+ quarterService.upExamineFile(standardVo);
|
|
|
+ standardVo.setProjectStatus(ProjectStatus.PLANTOBACK.getCode());
|
|
|
return review(provisionalPlanVo);
|
|
|
}
|
|
|
|