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
3be9af5d
Commit
3be9af5d
authored
Nov 15, 2024
by
张森
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cafs水箱 泡沫罐相关问题修改
parent
469660a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
SupervisionConfigureController.java
...quipmanage/controller/SupervisionConfigureController.java
+11
-0
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+5
-7
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/SupervisionConfigureController.java
View file @
3be9af5d
...
...
@@ -10,6 +10,7 @@ import com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex;
import
com.yeejoin.equipmanage.common.entity.FormInstanceEquip
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipTrendResultVo
;
import
com.yeejoin.equipmanage.common.enums.IndexStatusEnum
;
import
com.yeejoin.equipmanage.common.enums.UnitEnum
;
import
com.yeejoin.equipmanage.common.utils.*
;
import
com.yeejoin.equipmanage.config.PersonIdentify
;
import
com.yeejoin.equipmanage.fegin.IotFeign
;
...
...
@@ -249,6 +250,12 @@ public class SupervisionConfigureController extends AbstractBaseController {
for
(
Map
<
String
,
Object
>
m
:
res
)
{
Map
<
String
,
Object
>
transResult
=
UnitTransformUtil
.
transformValues
(
String
.
valueOf
(
m
.
get
(
"nowLevel"
)),
String
.
valueOf
(
m
.
get
(
"unit"
)),
String
.
valueOf
(
m
.
get
(
"minLevel"
)),
String
.
valueOf
(
m
.
get
(
"maxLevel"
)));
if
(
UnitEnum
.
LFM
.
getKey
().
equalsIgnoreCase
(
String
.
valueOf
(
m
.
get
(
"unit"
)))
||
UnitEnum
.
LFM
.
getName
().
equals
(
String
.
valueOf
(
m
.
get
(
"unit"
))))
{
transResult
=
UnitTransformUtil
.
transformValuesLFM
(
String
.
valueOf
(
m
.
get
(
"nowLevel"
)),
String
.
valueOf
(
m
.
get
(
"unit"
)),
String
.
valueOf
(
m
.
get
(
"minLevel"
)),
String
.
valueOf
(
m
.
get
(
"maxLevel"
)));
}
m
.
put
(
"nowLevel"
,
transResult
.
get
(
"nowValue"
));
if
(
StringUtil
.
isNotEmpty
(
IndexStatusEnum
.
getEnumByKey
(
String
.
valueOf
(
transResult
.
get
(
"status"
)))))
{
m
.
put
(
"levelStatus"
,
IndexStatusEnum
.
getEnumByKey
(
String
.
valueOf
(
transResult
.
get
(
"status"
))).
getDescribe1
());
...
...
@@ -256,6 +263,10 @@ public class SupervisionConfigureController extends AbstractBaseController {
m
.
put
(
"levelStatus"
,
"--"
);
}
m
.
put
(
"levelAbs"
,
transResult
.
get
(
"abs"
));
if
(
UnitEnum
.
LFM
.
getKey
().
equalsIgnoreCase
(
String
.
valueOf
(
m
.
get
(
"unit"
)))
||
UnitEnum
.
LFM
.
getName
().
equals
(
String
.
valueOf
(
m
.
get
(
"unit"
))))
{
m
.
put
(
"abs"
,
transResult
.
get
(
"abs"
)
+
"%"
);
}
m
.
put
(
"unit"
,
transResult
.
get
(
"unit"
).
toString
());
}
}
return
CommonResponseUtil
.
success
(
page1
);
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
3be9af5d
...
...
@@ -3029,20 +3029,18 @@
<if
test=
"code == '92011000'"
>
max( CASE WHEN b.field_name = 'maxPressure' THEN b.field_value END ) AS maxNum,
max( CASE WHEN b.field_name = 'minPressure' THEN b.field_value END ) AS minNum,
concat('压力(', ifnull(c.unit, 'Mpa'), ')
') as unit
ifnull(c.unit, 'Mpa
') as unit
</if>
<if
test=
"(code == '92032000' and indexKey == 'CAFS_WaterTank_WaterTankLevel') or (code == '92031900')"
>
max( CASE WHEN b.field_name = 'maxLevel' THEN b.field_value END ) AS maxNum,
max( CASE WHEN b.field_name = 'minLevel' THEN b.field_value END ) AS minNum,
concat('液位(', ifnull(c.unit, 'M'), ')
') as unit
ifnull(c.unit, 'M
') as unit
</if>
<if
test=
"code == '92032000' and indexKey == 'CAFS_WaterTank_EffluentFlow'"
>
max( CASE WHEN b.field_name = 'maxLevel' THEN b.field_value END ) AS maxNum,
max( CASE WHEN b.field_name = 'minLevel' THEN b.field_value END ) AS minNum,
concat('出口流量(', ifnull(c.unit, 'L/S'), ')') as unit
ifnull(c.unit, 'L/S') as unit
</if>
<if
test=
"code == '92010800'"
>
'
频次(次/小时)
' as unit
'
次/小时
' as unit
</if>
FROM
`wl_equipment_specific` AS a
...
...
@@ -3066,7 +3064,7 @@
GROUP_CONCAT( c.iot_code ) AS iotCode,
b.min_water_level AS minNum,
b.max_water_level AS maxNum,
'
液位(M)
' AS unit
'
M
' AS unit
FROM
`cb_water_resource` AS a
LEFT JOIN cb_water_resource_pool b ON a.sequence_nbr = b.resource_id
...
...
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