Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
ac80a9d2
Commit
ac80a9d2
authored
Nov 29, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
健康指数页面保留一位小数
parent
38e813af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
TdInfoQueryController.java
...ot/module/jxiop/biz/controller/TdInfoQueryController.java
+4
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/TdInfoQueryController.java
View file @
ac80a9d2
...
@@ -33,6 +33,7 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
...
@@ -33,6 +33,7 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.text.DecimalFormat
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -64,6 +65,7 @@ public class TdInfoQueryController {
...
@@ -64,6 +65,7 @@ public class TdInfoQueryController {
@Autowired
@Autowired
IdxBizFanHealthIndexMapper
idxBizFanHealthIndexMapper
;
IdxBizFanHealthIndexMapper
idxBizFanHealthIndexMapper
;
public
final
DecimalFormat
df
=
new
DecimalFormat
(
"#.0"
);
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
...
@@ -110,6 +112,7 @@ public class TdInfoQueryController {
...
@@ -110,6 +112,7 @@ public class TdInfoQueryController {
}
}
List
<
FanHealthIndex
>
fanHealthIndexIPage
=
fanHealthIndexMapper
.
getInfoByPage
(
dto
);
List
<
FanHealthIndex
>
fanHealthIndexIPage
=
fanHealthIndexMapper
.
getInfoByPage
(
dto
);
fanHealthIndexIPage
.
forEach
(
item
->
item
.
setHealthIndex
(
Double
.
valueOf
(
df
.
format
(
item
.
getHealthIndex
()))));
Integer
infoByPageTotal
=
fanHealthIndexMapper
.
getInfoByPageTotal
(
dto
);
Integer
infoByPageTotal
=
fanHealthIndexMapper
.
getInfoByPageTotal
(
dto
);
resultPage
.
setRecords
(
fanHealthIndexIPage
);
resultPage
.
setRecords
(
fanHealthIndexIPage
);
resultPage
.
setTotal
(
infoByPageTotal
);
resultPage
.
setTotal
(
infoByPageTotal
);
...
@@ -172,6 +175,7 @@ public class TdInfoQueryController {
...
@@ -172,6 +175,7 @@ public class TdInfoQueryController {
String
join
=
String
.
join
(
","
,
orderByList
);
String
join
=
String
.
join
(
","
,
orderByList
);
dto
.
setOrderColumns
(
join
);
dto
.
setOrderColumns
(
join
);
List
<
PvHealthIndex
>
pvHealthIndexIPage
=
pvHealthIndexMapper
.
getInfoByPage
(
dto
);
List
<
PvHealthIndex
>
pvHealthIndexIPage
=
pvHealthIndexMapper
.
getInfoByPage
(
dto
);
pvHealthIndexIPage
.
forEach
(
item
->
item
.
setHealthIndex
(
Double
.
valueOf
(
df
.
format
(
item
.
getHealthIndex
()))));
Integer
infoByPageTotal
=
pvHealthIndexMapper
.
getInfoByPageTotal
(
dto
);
Integer
infoByPageTotal
=
pvHealthIndexMapper
.
getInfoByPageTotal
(
dto
);
resultPage
.
setRecords
(
pvHealthIndexIPage
);
resultPage
.
setRecords
(
pvHealthIndexIPage
);
resultPage
.
setTotal
(
infoByPageTotal
);
resultPage
.
setTotal
(
infoByPageTotal
);
...
...
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