Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhny
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王夏晖
zhny
Commits
eaea87aa
Commit
eaea87aa
authored
Aug 16, 2018
by
jichao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
能耗管理--用能概况,“今日运行费用”不一致的bug
parent
2debe327
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
EnergyCountMRepository.java
...rcisoft/business/overview/dao/EnergyCountMRepository.java
+2
-2
OverViewServiceImpl.java
...t/business/overview/service/impl/OverViewServiceImpl.java
+1
-1
No files found.
src/main/java/org/rcisoft/business/overview/dao/EnergyCountMRepository.java
View file @
eaea87aa
...
...
@@ -28,9 +28,9 @@ public interface EnergyCountMRepository extends BaseMapper<EnergyCountM> {
"sum(ELEC) as elec,sum(ELEC_MONEY) as elecMoney,"
+
"sum(GAS) as gas,sum(GAS_MONEY) as gasMoney"
+
" from energy_count_m e "
+
"where e.PRO_ID=#{proId} and `year`=#{year}"
+
"where e.PRO_ID=#{proId} and `year`=#{year}
and mon=${mon}
"
+
"<if test=\"day != null\"> and `day`=${day} group by e.`day`</if>"
+
"<if test=\"
mon != null\"> and mon=${mon}
group by e.mon</if></script>"
)
"<if test=\"
day == null\">
group by e.mon</if></script>"
)
@ResultMap
(
"BaseResultMap"
)
EnergyCountM
countAmountAndPrice
(
EnergyCountM
energyCountM
);
...
...
src/main/java/org/rcisoft/business/overview/service/impl/OverViewServiceImpl.java
View file @
eaea87aa
...
...
@@ -310,12 +310,12 @@ public class OverViewServiceImpl implements OverViewService {
EnergyCountM
m
=
new
EnergyCountM
();
m
.
setProId
(
proId
);
m
.
setYear
(
cal
.
get
(
"year"
));
m
.
setMon
(
cal
.
get
(
"month"
));
//统计日
m
.
setDay
(
cal
.
get
(
"day"
));
EnergyCountM
dayCount
=
energyCountMRepository
.
countAmountAndPrice
(
m
);
//统计月
m
.
setDay
(
null
);
m
.
setMon
(
cal
.
get
(
"month"
));
EnergyCountM
monthCount
=
energyCountMRepository
.
countAmountAndPrice
(
m
);
//合并返回值
Map
<
String
,
Object
>
result
=
new
HashMap
<
String
,
Object
>();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment