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
7848b970
Commit
7848b970
authored
Oct 24, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加层级转化
parent
005054dd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
2 deletions
+46
-2
IdxBizFanWeightController.java
...odule/jxiop/biz/controller/IdxBizFanWeightController.java
+23
-1
IdxBizPvWeightController.java
...module/jxiop/biz/controller/IdxBizPvWeightController.java
+23
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/IdxBizFanWeightController.java
View file @
7848b970
...
...
@@ -63,7 +63,29 @@ public class IdxBizFanWeightController extends BaseController {
//PageHelper.startPage(current, size);
List
<
IdxBizFanWeight
>
list
=
idxBizFanWeightMapper
.
selectList
(
qu
);
List
<
IdxBizFanWeight
>
formattedDates
=
list
.
stream
().
map
(
e
->
e
.
setValue
(
Float
.
parseFloat
(
new
DecimalFormat
(
"0.000"
).
format
(
e
.
getValue
())))).
collect
(
Collectors
.
toList
());
List
<
IdxBizFanWeight
>
formattedDates
=
list
.
stream
().
map
(
e
->
{
e
.
setValue
(
e
.
getValue
()!=
null
?
Float
.
parseFloat
(
new
DecimalFormat
(
"0.000"
).
format
(
e
.
getValue
())):
null
);
switch
(
e
.
getType
()){
case
"1"
:
e
.
setType
(
"片区"
);
break
;
case
"2"
:
e
.
setType
(
"场站"
);
break
;
case
"3"
:
e
.
setType
(
"设备"
);
break
;
case
"4"
:
e
.
setType
(
"子系统"
);
break
;
case
"5"
:
e
.
setType
(
"变量"
);
break
;
}
return
e
;
}
).
collect
(
Collectors
.
toList
());
//PageInfo<IdxBizFanWeight> page = new PageInfo(list);
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
IdxBizFanWeight
>
pagenew
=
new
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
IdxBizFanWeight
>();
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/IdxBizPvWeightController.java
View file @
7848b970
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
...
...
@@ -70,7 +71,28 @@ public class IdxBizPvWeightController extends BaseController {
List
<
IdxBizPvWeight
>
list
=
idxBizPvWeightMapper
.
selectList
(
qu
);
// PageInfo<IdxBizPvWeight> page = new PageInfo(list);
List
<
IdxBizPvWeight
>
formattedDates
=
list
.
stream
().
map
(
e
->
e
.
setValue
(
Float
.
parseFloat
(
new
DecimalFormat
(
"0.000"
).
format
(
e
.
getValue
())))).
collect
(
Collectors
.
toList
());
List
<
IdxBizPvWeight
>
formattedDates
=
list
.
stream
().
map
(
e
->
{
e
.
setValue
(
e
.
getValue
()!=
null
?
Float
.
parseFloat
(
new
DecimalFormat
(
"0.000"
).
format
(
e
.
getValue
())):
null
);
switch
(
e
.
getType
()){
case
"1"
:
e
.
setType
(
"片区"
);
break
;
case
"2"
:
e
.
setType
(
"场站"
);
break
;
case
"3"
:
e
.
setType
(
"设备"
);
break
;
case
"4"
:
e
.
setType
(
"子阵"
);
break
;
case
"5"
:
e
.
setType
(
"变量"
);
break
;
}
return
e
;
}
).
collect
(
Collectors
.
toList
());
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
IdxBizPvWeight
>
pagenew
=
new
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
IdxBizPvWeight
>();
pagenew
.
setCurrent
(
current
);
...
...
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