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
e041b7ac
Commit
e041b7ac
authored
May 30, 2018
by
王夏晖
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
69e2b614
fb6e2c24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
BusDevService.java
...oft/business/device/maintenance/entity/BusDevService.java
+5
-7
OverViewServiceImpl.java
...t/business/overview/service/impl/OverViewServiceImpl.java
+1
-1
No files found.
src/main/java/org/rcisoft/business/device/maintenance/entity/BusDevService.java
View file @
e041b7ac
...
...
@@ -21,7 +21,7 @@ public class BusDevService {
@Id
private
String
serId
;
private
String
serPrincipal
;
private
String
dev
Num
;
private
String
dev
Id
;
private
Date
serTm
;
private
String
serContent
;
private
String
note
;
...
...
@@ -44,16 +44,14 @@ public class BusDevService {
this
.
serPrincipal
=
serPrincipal
;
}
public
String
getDevNum
()
{
return
devNum
;
public
String
getDevId
()
{
return
devId
;
}
public
void
setDev
Num
(
String
devNum
)
{
this
.
dev
Num
=
devNum
;
public
void
setDev
Id
(
String
devId
)
{
this
.
dev
Id
=
devId
;
}
public
Date
getSerTm
()
{
return
serTm
;
}
...
...
src/main/java/org/rcisoft/business/overview/service/impl/OverViewServiceImpl.java
View file @
e041b7ac
...
...
@@ -360,7 +360,7 @@ public class OverViewServiceImpl implements OverViewService {
if
(
total
.
compareTo
(
new
BigDecimal
(
0
))
==
0
)
energyCountMVo
.
setPercent
(
total
+
"%"
);
else
energyCountMVo
.
setPercent
(
energyCountMVo
.
getEnergy
().
divide
(
total
).
multiply
(
new
BigDecimal
(
100
)).
setScale
(
1
)
+
"%"
);
energyCountMVo
.
setPercent
(
energyCountMVo
.
getEnergy
().
divide
(
total
,
1
,
BigDecimal
.
ROUND_HALF_UP
).
multiply
(
new
BigDecimal
(
100
)
)
+
"%"
);
}
}
return
list
;
...
...
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