From b97d997812695c811132ed23a64b3132c5be7123 Mon Sep 17 00:00:00 2001 From: sfd <sun.sunshine@163.com> Date: 星期四, 22 五月 2025 10:53:17 +0800 Subject: [PATCH] 复制接口增加专业参数 --- aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipelineCapacityPlanServiceImpl.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipelineCapacityPlanServiceImpl.java b/aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipelineCapacityPlanServiceImpl.java index 0f16f88..742e2bf 100644 --- a/aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipelineCapacityPlanServiceImpl.java +++ b/aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipelineCapacityPlanServiceImpl.java @@ -101,7 +101,7 @@ @SneakyThrows @Override @Transactional(rollbackFor = Exception.class) - public void copyPlan(String date, String factory, String toStart, String toEnd) { + public void copyPlan(String date, String factory, String major, String toStart, String toEnd) { String[] dtSrc = date.split("-"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM"); @@ -116,6 +116,7 @@ plan.setYear(Integer.valueOf(dtSrc[0]).toString()); plan.setMonth(Integer.valueOf(dtSrc[1]).toString()); plan.setOrgCode(factory); + plan.setMajor(major); List<ApsGasPipelineCapacityPlan> templatePlans = apsGasPipelineCapacityPlanMapper.selectApsGasPipelineCapacityPlanList(plan); while (dtStart.before(dtEnd)) { String year = dtStart.get(Calendar.YEAR) + ""; @@ -123,7 +124,8 @@ apsGasPipelineCapacityPlanMapper.deleteByDateAndFactory( year, month, - factory + factory, + major ); templatePlans.forEach(p -> { p.setYear(year); -- Gitblit v1.9.3