Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张雷
/
skboot-zhongye
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
2f319ed0
由
张雷
编写于
2024-11-22 17:37:50 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
运营分析专题修改
1 个父辈
2a158411
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
29 行增加
和
0 行删除
sk-module-datafill/src/main/java/com/skua/modules/dataAnalysis/mapper/FactoryOperateCenterMapper.java
sk-module-datafill/src/main/java/com/skua/modules/dataAnalysis/mapper/xml/FactoryOperateCenterMapper.xml
sk-module-datafill/src/main/java/com/skua/modules/dataAnalysis/service/impl/FactoryOperateCenterServiceImpl.java
sk-module-datafill/src/main/java/com/skua/modules/dataAnalysis/mapper/FactoryOperateCenterMapper.java
查看文件 @
2f319ed
...
...
@@ -31,4 +31,8 @@ public interface FactoryOperateCenterMapper {
@Anonymous
Map
<
String
,
Object
>
getSdyData
(
@Param
(
"view2119"
)
String
view2119
,
@Param
(
"view3a24"
)
String
view3a24
,
@Param
(
"departId"
)
String
departId
,
@Param
(
"dateTime"
)
String
dateTime
);
List
<
Map
<
String
,
Object
>>
getDfList
(
@Param
(
"departId"
)
String
departId
,
@Param
(
"month"
)
String
month
);
List
<
Map
<
String
,
Object
>>
getMbList
(
@Param
(
"departId"
)
String
departId
,
@Param
(
"year"
)
String
year
);
}
...
...
sk-module-datafill/src/main/java/com/skua/modules/dataAnalysis/mapper/xml/FactoryOperateCenterMapper.xml
查看文件 @
2f319ed
...
...
@@ -148,4 +148,22 @@
ON v.depart_id = v3.depart_id
where v.depart_id = #{departId} and v.time like CONCAT(#{dateTime},'%')
</select>
<select
id=
"getDfList"
resultType=
"java.util.HashMap"
>
select * from report_electric_cost
where depart_id in
<foreach
item=
"item"
index=
"index"
collection=
"departId.split(',')"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
AND month = #{month}
</select>
<select
id=
"getMbList"
resultType=
"java.util.HashMap"
>
select * from report_target_config
where depart_id in
<foreach
item=
"item"
index=
"index"
collection=
"departId.split(',')"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
AND target_year = #{year}
</select>
</mapper>
...
...
sk-module-datafill/src/main/java/com/skua/modules/dataAnalysis/service/impl/FactoryOperateCenterServiceImpl.java
查看文件 @
2f319ed
...
...
@@ -326,6 +326,9 @@ public class FactoryOperateCenterServiceImpl implements IFactoryOperateCenterSer
hyMap
.
put
(
"should"
,
dayCount
);
//电费报表
map
.
put
(
"df"
,
new
HashMap
<>());
List
<
Map
<
String
,
Object
>>
dfList
=
factoryOperateCenterMapper
.
getDfList
(
departId
,
month
);
dfd
=
dfList
.
size
();
df
=
DoubleOperaUtils
.
bigDecimalRound
((
100
*
dfd
)/
dfs
,
0
);
Map
<
String
,
Object
>
dfMap
=
new
HashMap
<>();
dfMap
.
put
(
"bfb"
,
df
);
dfMap
.
put
(
"done"
,
dfd
);
...
...
@@ -340,6 +343,10 @@ public class FactoryOperateCenterServiceImpl implements IFactoryOperateCenterSer
yyzbMap
.
put
(
"should"
,
yyzbs
);
//年度目标报表
map
.
put
(
"ndmb"
,
new
HashMap
<>());
String
year
=
month
.
split
(
"-"
)[
0
];
List
<
Map
<
String
,
Object
>>
mbList
=
factoryOperateCenterMapper
.
getMbList
(
departId
,
year
);
ndmbd
=
mbList
.
size
();
ndmb
=
DoubleOperaUtils
.
bigDecimalRound
((
100
*
ndmbd
)/
ndmbs
,
0
);
Map
<
String
,
Object
>
ndmbMap
=
new
HashMap
<>();
ndmbMap
.
put
(
"bfb"
,
ndmb
);
ndmbMap
.
put
(
"done"
,
ndmbd
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论