|
@@ -316,25 +316,31 @@ public class ProjectInfoServiceImpl extends BaseServiceImpl<ProjectInfoMapper, P
|
|
|
}
|
|
|
for (ProjectPlanProgressVO progress : vos) {
|
|
|
Integer i = progress.getPlanMonth();
|
|
|
+ progress.setPlanMonthName(monthNames[i]);
|
|
|
+ progress.setYearlyTarget(planVO.getYearlyTarget());
|
|
|
if (i <= 3){
|
|
|
+ progress.setPlanQuarterName("一季度");
|
|
|
if (planVO.getOneInvest() != null) {
|
|
|
progress.setPlanInvestMoney(planVO.getOneInvest());
|
|
|
progress.setInvestUnfinishedMoney(planVO.getOneInvest().subtract(monthFinished));
|
|
|
}
|
|
|
progress.setWorkPlan(planVO.getOnePlan());
|
|
|
}else if (i <= 6){
|
|
|
+ progress.setPlanQuarterName("二季度");
|
|
|
if (planVO.getTwoInvest() != null) {
|
|
|
progress.setPlanInvestMoney(planVO.getTwoInvest());
|
|
|
progress.setInvestUnfinishedMoney(planVO.getTwoInvest().subtract(monthFinished));
|
|
|
}
|
|
|
progress.setWorkPlan(planVO.getTwoPlan());
|
|
|
}else if (i <= 9){
|
|
|
+ progress.setPlanQuarterName("三季度");
|
|
|
if (planVO.getThreeInvest() != null) {
|
|
|
progress.setPlanInvestMoney(planVO.getThreeInvest());
|
|
|
progress.setInvestUnfinishedMoney(planVO.getThreeInvest().subtract(monthFinished));
|
|
|
}
|
|
|
progress.setWorkPlan(planVO.getThreePlan());
|
|
|
}else {
|
|
|
+ progress.setPlanQuarterName("四季度");
|
|
|
if (planVO.getFourInvest() != null) {
|
|
|
progress.setPlanInvestMoney(planVO.getFourInvest());
|
|
|
progress.setInvestUnfinishedMoney(planVO.getFourInvest().subtract(monthFinished));
|
|
@@ -615,4 +621,14 @@ public class ProjectInfoServiceImpl extends BaseServiceImpl<ProjectInfoMapper, P
|
|
|
//修改年计划
|
|
|
investPlanService.updateBatchById(updateYearPlan);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @Transactional
|
|
|
+ public void delete(Long id) {
|
|
|
+ this.removeById(id);
|
|
|
+ investPlanService.remove(new LambdaQueryWrapper<ProjectInvestPlan>()
|
|
|
+ .eq(ProjectInvestPlan::getProjectId,id));
|
|
|
+ planProgressService.remove(new LambdaQueryWrapper<ProjectPlanProgress>()
|
|
|
+ .eq(ProjectPlanProgress::getProjectId,id));
|
|
|
+ }
|
|
|
}
|