Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
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
poc
poc-api
Commits
e9703698
Commit
e9703698
authored
Dec 16, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:趋势图积分列保留两位小数
parent
28546124
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
AgentDataAnalyzeRestImpl.java
...cn/com/poc/expose/rest/impl/AgentDataAnalyzeRestImpl.java
+3
-1
No files found.
src/main/java/cn/com/poc/expose/rest/impl/AgentDataAnalyzeRestImpl.java
View file @
e9703698
...
...
@@ -11,6 +11,8 @@ import cn.com.yict.framemax.core.i18n.I18nMessageException;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -94,7 +96,7 @@ public class AgentDataAnalyzeRestImpl implements AgentDataAnalyzeRest {
agentDataAnalyzeTrendDto
.
setDate
(
entity
.
getDate
());
agentDataAnalyzeTrendDto
.
setUsersCount
(
entity
.
getUsersCount
());
agentDataAnalyzeTrendDto
.
setUsageCount
(
entity
.
getUsageCount
());
agentDataAnalyzeTrendDto
.
setTotalPoints
(
entity
.
getTotalPoints
());
agentDataAnalyzeTrendDto
.
setTotalPoints
(
BigDecimal
.
valueOf
(
entity
.
getTotalPoints
()).
setScale
(
2
,
RoundingMode
.
HALF_UP
).
doubleValue
());
result
.
add
(
agentDataAnalyzeTrendDto
);
}
return
result
;
...
...
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