From d87253cab264ba43ab84b7dfa548435c32d7b093 Mon Sep 17 00:00:00 2001 From: haozq <1611483981@qq.com> Date: Tue, 28 Oct 2025 09:28:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=88=86=E6=9E=90=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../background/vo/SjProjectProgress.java | 8 ++ .../mapper/SjProjectProgressMapper.xml | 11 +- .../SjConstructionProgressController.java | 20 ++++ .../SjEnergyReductionController.java | 32 +++++ .../screen/domain/SjConstructionProgress.java | 21 ++++ .../screen/domain/SjEnergyReduction.java | 3 + .../screen/domain/SjProjectEnvironment.java | 4 + .../mapper/SjConstructionProgressMapper.java | 14 +++ .../mapper/SjEnergyReductionMapper.java | 22 ++++ .../SjConstructionProgressService.java | 14 +++ .../service/SjEnergyReductionService.java | 14 +++ .../SjConstructionProgressServiceImpl.java | 96 +++++++++------ .../impl/SjEnergyReductionServiceImpl.java | 111 ++++++++++++------ .../mapper/SjConstructionProgressMapper.xml | 63 +++++----- .../mapper/SjEnergyReductionMapper.xml | 27 +++++ .../mapper/SjProjectEnvironmentMapper.xml | 3 +- 16 files changed, 353 insertions(+), 110 deletions(-) diff --git a/securitycontrol-commons/securitycontrol-commons-entity/src/main/java/com/securitycontrol/entity/background/vo/SjProjectProgress.java b/securitycontrol-commons/securitycontrol-commons-entity/src/main/java/com/securitycontrol/entity/background/vo/SjProjectProgress.java index b11608d..b385407 100644 --- a/securitycontrol-commons/securitycontrol-commons-entity/src/main/java/com/securitycontrol/entity/background/vo/SjProjectProgress.java +++ b/securitycontrol-commons/securitycontrol-commons-entity/src/main/java/com/securitycontrol/entity/background/vo/SjProjectProgress.java @@ -32,6 +32,14 @@ public class SjProjectProgress { * 结束时间 */ private String endTime; + /** + * 计划进度 + */ + private String planAccess; + /** + * 实际进度 + */ + private String exeAccess; diff --git a/securitycontrol-model/securitycontrol-background/src/main/resources/mapper/SjProjectProgressMapper.xml b/securitycontrol-model/securitycontrol-background/src/main/resources/mapper/SjProjectProgressMapper.xml index 5a97505..7808f5f 100644 --- a/securitycontrol-model/securitycontrol-background/src/main/resources/mapper/SjProjectProgressMapper.xml +++ b/securitycontrol-model/securitycontrol-background/src/main/resources/mapper/SjProjectProgressMapper.xml @@ -4,20 +4,21 @@ insert into sj_construction_progress( - pro_type ,pro_gx , plan_start_time , plan_end_time ,start_time , end_time - )values (#{proType},#{proGx},#{planStartTime},#{planEndTime},#{startTime},#{endTime}) + pro_type ,pro_gx , plan_start_time , plan_end_time ,start_time , end_time,plan_access,exe_access + )values (#{proType},#{proGx},#{planStartTime},#{planEndTime},#{startTime},#{endTime},#{planAccess},#{exeAccess}) update sj_construction_progress set pro_type=#{proType} ,pro_gx =#{proGx}, - plan_start_time =#{planStartTime}, plan_end_time =#{planEndTime},start_time =#{startTime}, end_time =#{endTime} + plan_start_time =#{planStartTime}, plan_end_time =#{planEndTime},start_time =#{startTime}, end_time =#{endTime}, + plan_access=#{planAccess},exe_access=#{exeAccess} where id=#{id} delete from sj_construction_progress where id=#{id} SELECT date_list.dt AS date, @@ -159,4 +125,33 @@ SELECT FROM sj_construction_progress ORDER BY id + + diff --git a/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/SjEnergyReductionMapper.xml b/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/SjEnergyReductionMapper.xml index cd93213..432dd23 100644 --- a/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/SjEnergyReductionMapper.xml +++ b/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/SjEnergyReductionMapper.xml @@ -115,4 +115,31 @@ WHERE date_list.dt BETWEEN #{startTime} AND #{endTime} ORDER BY t.type, date_list.dt + + + diff --git a/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/SjProjectEnvironmentMapper.xml b/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/SjProjectEnvironmentMapper.xml index 93d3cbc..c7b6e58 100644 --- a/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/SjProjectEnvironmentMapper.xml +++ b/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/SjProjectEnvironmentMapper.xml @@ -14,6 +14,7 @@ + @@ -29,7 +30,7 @@ tdd.mode_name, DATE(thdv.create_time) AS `currentDay`, HOUR(thdv.create_time) AS `hour`, - thdv.val, + thdv.val,thdv.unit, thdv.is_warn FROM tb_pro_bd tpd