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 IFNULL(sum(data_num),0)
+ from sj_energy_reduction
+ where type like('%发电%') and create_time between #{startTime} and #{endTime}
+ union All
+ select IFNULL(sum(data_num),0)
+ from sj_energy_reduction
+ where type like('%蓄水%') and create_time between #{startTime} and #{endTime}
+
+
+ select IFNULL(sum(data_num),0)
+ from sj_energy_reduction
+ where type like('%发电%') and create_time=#{day}
+ union All
+ select IFNULL(sum(data_num),0)
+ from sj_energy_reduction
+ where type like('%用电%') and create_time=#{day}
+
+
+ select IFNULL(sum(data_num),0)
+ from sj_energy_reduction
+ where type like('%发电%') and create_time=#{day}
+ union All
+ select IFNULL(sum(data_num),0)
+ from sj_energy_reduction
+ where type like('%用电%') and create_time=#{day}
+
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