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
69db9929
Commit
69db9929
authored
May 21, 2024
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分析指标项
parent
ecef59d9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
6 deletions
+29
-6
IdxBizFanWeightController.java
...odule/jxiop/biz/controller/IdxBizFanWeightController.java
+3
-1
IdxBizPvWeightController.java
...module/jxiop/biz/controller/IdxBizPvWeightController.java
+3
-0
TDBigScreenAnalyseController.java
...le/jxiop/biz/controller/TDBigScreenAnalyseController.java
+3
-1
IdxBizFanWeight.java
...in/amos/boot/module/jxiop/biz/entity/IdxBizFanWeight.java
+11
-2
IdxBizPvWeight.java
...oin/amos/boot/module/jxiop/biz/entity/IdxBizPvWeight.java
+9
-2
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 @
69db9929
...
@@ -78,6 +78,7 @@ public class IdxBizFanWeightController extends BaseController {
...
@@ -78,6 +78,7 @@ public class IdxBizFanWeightController extends BaseController {
List
<
IdxBizFanWeight
>
formattedDates
=
list
.
stream
().
map
(
e
->
{
List
<
IdxBizFanWeight
>
formattedDates
=
list
.
stream
().
map
(
e
->
{
e
.
setValue
(
e
.
getValue
()!=
null
?
Float
.
parseFloat
(
new
DecimalFormat
(
"0.000"
).
format
(
e
.
getValue
())):
null
);
e
.
setValue
(
e
.
getValue
()!=
null
?
Float
.
parseFloat
(
new
DecimalFormat
(
"0.000"
).
format
(
e
.
getValue
())):
null
);
e
.
setValueS
(
e
.
getValue
()!=
null
?
new
DecimalFormat
(
"0.000"
).
format
(
e
.
getValue
()):
null
);
switch
(
e
.
getType
()){
switch
(
e
.
getType
()){
case
"1"
:
case
"1"
:
e
.
setType
(
"片区"
);
e
.
setType
(
"片区"
);
...
@@ -95,7 +96,6 @@ public class IdxBizFanWeightController extends BaseController {
...
@@ -95,7 +96,6 @@ public class IdxBizFanWeightController extends BaseController {
e
.
setType
(
"变量"
);
e
.
setType
(
"变量"
);
break
;
break
;
}
}
return
e
;
return
e
;
}
}
).
collect
(
Collectors
.
toList
());
).
collect
(
Collectors
.
toList
());
...
@@ -313,8 +313,10 @@ public class IdxBizFanWeightController extends BaseController {
...
@@ -313,8 +313,10 @@ public class IdxBizFanWeightController extends BaseController {
for
(
IdxBizFanWeight
listdatum
:
listdata
)
{
for
(
IdxBizFanWeight
listdatum
:
listdata
)
{
for
(
IdxBizFanWeight
idxBizPvWeight
:
list
)
{
for
(
IdxBizFanWeight
idxBizPvWeight
:
list
)
{
listdatum
.
setValue
(
formattedNum
);
listdatum
.
setValue
(
formattedNum
);
listdatum
.
setFlag
(
null
);
if
(
idxBizPvWeight
.
getSequenceNbr
().
equals
(
listdatum
.
getSequenceNbr
()))
{
if
(
idxBizPvWeight
.
getSequenceNbr
().
equals
(
listdatum
.
getSequenceNbr
()))
{
listdatum
.
setValue
(
Float
.
valueOf
(
value
.
get
(
"data"
).
toString
()));
listdatum
.
setValue
(
Float
.
valueOf
(
value
.
get
(
"data"
).
toString
()));
listdatum
.
setFlag
(
"是"
);
break
;
break
;
}
}
}
}
...
...
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 @
69db9929
...
@@ -83,6 +83,7 @@ public class IdxBizPvWeightController extends BaseController {
...
@@ -83,6 +83,7 @@ public class IdxBizPvWeightController extends BaseController {
List
<
IdxBizPvWeight
>
formattedDates
=
list
.
stream
().
map
(
e
->
{
List
<
IdxBizPvWeight
>
formattedDates
=
list
.
stream
().
map
(
e
->
{
e
.
setValue
(
e
.
getValue
()!=
null
?
Float
.
parseFloat
(
new
DecimalFormat
(
"0.000"
).
format
(
e
.
getValue
())):
null
);
e
.
setValue
(
e
.
getValue
()!=
null
?
Float
.
parseFloat
(
new
DecimalFormat
(
"0.000"
).
format
(
e
.
getValue
())):
null
);
e
.
setValueS
(
e
.
getValue
()!=
null
?
new
DecimalFormat
(
"0.000"
).
format
(
e
.
getValue
()):
null
);
switch
(
e
.
getType
()){
switch
(
e
.
getType
()){
case
"1"
:
case
"1"
:
e
.
setType
(
"片区"
);
e
.
setType
(
"片区"
);
...
@@ -320,8 +321,10 @@ public class IdxBizPvWeightController extends BaseController {
...
@@ -320,8 +321,10 @@ public class IdxBizPvWeightController extends BaseController {
for
(
IdxBizPvWeight
listdatum
:
listdata
)
{
for
(
IdxBizPvWeight
listdatum
:
listdata
)
{
for
(
IdxBizPvWeight
idxBizPvWeight
:
list
)
{
for
(
IdxBizPvWeight
idxBizPvWeight
:
list
)
{
listdatum
.
setValue
(
formattedNum
);
listdatum
.
setValue
(
formattedNum
);
listdatum
.
setFlag
(
null
);
if
(
idxBizPvWeight
.
getSequenceNbr
().
equals
(
listdatum
.
getSequenceNbr
()))
{
if
(
idxBizPvWeight
.
getSequenceNbr
().
equals
(
listdatum
.
getSequenceNbr
()))
{
listdatum
.
setValue
(
Float
.
valueOf
(
value
.
get
(
"data"
).
toString
()));
listdatum
.
setValue
(
Float
.
valueOf
(
value
.
get
(
"data"
).
toString
()));
listdatum
.
setFlag
(
"是"
);
break
;
break
;
}
}
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/TDBigScreenAnalyseController.java
View file @
69db9929
...
@@ -140,8 +140,10 @@ public class TDBigScreenAnalyseController extends BaseController {
...
@@ -140,8 +140,10 @@ public class TDBigScreenAnalyseController extends BaseController {
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationCode
);
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationCode
);
stationCode
=
stationBasic
.
getFanGatewayId
();
stationCode
=
stationBasic
.
getFanGatewayId
();
}
else
if
(
StrUtil
.
isNotEmpty
(
station
))
{
}
else
if
(
StrUtil
.
isNotEmpty
(
station
))
{
//由于命名不统一
StationBasic
stationBasic
=
stationBasicMapper
.
selectOne
(
new
LambdaQueryWrapper
<
StationBasic
>()
StationBasic
stationBasic
=
stationBasicMapper
.
selectOne
(
new
LambdaQueryWrapper
<
StationBasic
>()
.
like
(
StationBasic:
:
getStationName
,
station
.
substring
(
0
,
station
.
length
()
-
1
)));
.
eq
(
StationBasic:
:
getStationName
,
station
.
substring
(
0
,
station
.
length
()
-
1
)+
'场'
)
.
or
().
eq
(
StationBasic:
:
getStationName
,
station
.
substring
(
0
,
station
.
length
()
-
1
)+
'站'
));
stationCode
=
stationBasic
.
getFanGatewayId
();
stationCode
=
stationBasic
.
getFanGatewayId
();
}
}
if
(
StrUtil
.
isNotEmpty
(
areaCode
))
{
if
(
StrUtil
.
isNotEmpty
(
areaCode
))
{
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/IdxBizFanWeight.java
View file @
69db9929
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
entity
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
entity
;
import
com.baomidou.mybatisplus.annotation.FieldStrategy
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
...
@@ -64,6 +66,12 @@ public class IdxBizFanWeight {
...
@@ -64,6 +66,12 @@ public class IdxBizFanWeight {
*/
*/
@TableField
(
"VALUE"
)
@TableField
(
"VALUE"
)
private
Float
value
;
private
Float
value
;
/**
* 权重值字符串
*/
@TableField
(
exist
=
false
)
private
String
valueS
;
/**
/**
* orgCode
* orgCode
...
@@ -71,6 +79,7 @@ public class IdxBizFanWeight {
...
@@ -71,6 +79,7 @@ public class IdxBizFanWeight {
@TableField
(
"ORG_CODE"
)
@TableField
(
"ORG_CODE"
)
private
String
orgCode
;
private
String
orgCode
;
@TableField
(
exist
=
false
)
private
String
Symbol_key
;
@TableField
(
value
=
"FLAG"
,
updateStrategy
=
FieldStrategy
.
IGNORED
)
private
String
flag
;
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/IdxBizPvWeight.java
View file @
69db9929
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
entity
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
entity
;
import
com.baomidou.mybatisplus.annotation.FieldStrategy
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
...
@@ -65,6 +66,12 @@ public class IdxBizPvWeight {
...
@@ -65,6 +66,12 @@ public class IdxBizPvWeight {
*/
*/
@TableField
(
"VALUE"
)
@TableField
(
"VALUE"
)
private
Float
value
;
private
Float
value
;
/**
* 权重值字符串
*/
@TableField
(
exist
=
false
)
private
String
valueS
;
/**
/**
* orgCode
* orgCode
...
@@ -72,6 +79,6 @@ public class IdxBizPvWeight {
...
@@ -72,6 +79,6 @@ public class IdxBizPvWeight {
@TableField
(
"ORG_CODE"
)
@TableField
(
"ORG_CODE"
)
private
String
orgCode
;
private
String
orgCode
;
@TableField
(
exist
=
false
)
@TableField
(
value
=
"FLAG"
,
updateStrategy
=
FieldStrategy
.
IGNORED
)
private
String
Symbol_key
;
private
String
flag
;
}
}
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