| | |
| | | plan.setOrgCode(factory); |
| | | plan.setMajor(major); |
| | | List<ApsGasPipelineCapacityPlan> templatePlans = apsGasPipelineCapacityPlanMapper.selectApsGasPipelineCapacityPlanList(plan); |
| | | templatePlans.forEach(p -> { |
| | | p.setCreateBy(SecurityUtils.getUsername()); |
| | | p.setCreateTime(new Date()); |
| | | p.setUpdateBy(null); |
| | | p.setUpdateTime(null); |
| | | // apsGasPipelineCapacityPlanMapper.insertApsGasPipelineCapacityPlan(p); |
| | | }); |
| | | |
| | | while (dtStart.before(dtEnd)) { |
| | | String year = dtStart.get(Calendar.YEAR) + ""; |
| | | String month = (dtStart.get(Calendar.MONTH) + 1) + ""; |
| | |
| | | major |
| | | ); |
| | | templatePlans.forEach(p -> { |
| | | p.setId(null); |
| | | p.setYear(year); |
| | | p.setMonth(month); |
| | | p.setCreateBy(SecurityUtils.getUsername()); |
| | | p.setCreateTime(new Date()); |
| | | p.setUpdateBy(null); |
| | | p.setUpdateTime(null); |
| | | apsGasPipelineCapacityPlanMapper.insertApsGasPipelineCapacityPlan(p); |
| | | // apsGasPipelineCapacityPlanMapper.insertApsGasPipelineCapacityPlan(p); |
| | | }); |
| | | apsGasPipelineCapacityPlanMapper.insert(templatePlans); |
| | | |
| | | dtStart.add(Calendar.MONTH, 1); |
| | | } |