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
cff3c7d1
Commit
cff3c7d1
authored
Aug 07, 2024
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改水池弹框bug
parent
a8d19a19
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
19 deletions
+32
-19
PoolStatisticController.java
...ejoin/equipmanage/controller/PoolStatisticController.java
+20
-13
FireFightingSystemMapper.java
.../yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
+1
-1
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+11
-5
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/PoolStatisticController.java
View file @
cff3c7d1
...
@@ -228,12 +228,19 @@ public class PoolStatisticController {
...
@@ -228,12 +228,19 @@ public class PoolStatisticController {
@RequestMapping
(
value
=
"/page"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/page"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取水池信息"
,
notes
=
"获取水池信息"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取水池信息"
,
notes
=
"获取水池信息"
)
public
ResponseModel
getWaterInfo
(
CommonPageable
commonPageable
,
@RequestParam
(
required
=
false
)
String
bizOrgCode
,
public
ResponseModel
getWaterInfo
(
CommonPageable
commonPageable
,
@RequestParam
(
required
=
false
)
String
bizOrgCode
,
@RequestParam
(
required
=
false
)
String
stationOrder
,
@RequestParam
(
required
=
false
)
String
stateOrder
)
{
@RequestParam
(
required
=
false
)
String
stationOrder
,
@RequestParam
(
required
=
false
)
String
stateOrder
,
@RequestParam
(
required
=
false
)
String
status
)
{
if
(
commonPageable
.
getPageNumber
()
==
0
)
{
if
(
commonPageable
.
getPageNumber
()
==
0
)
{
commonPageable
.
setPageNumber
(
1
);
commonPageable
.
setPageNumber
(
1
);
}
}
if
(
"normal"
.
equalsIgnoreCase
(
status
))
{
status
=
"0"
;
}
else
if
(
"abnormal"
.
equalsIgnoreCase
(
status
))
{
status
=
"1"
;
}
Page
page
=
new
Page
<>(
commonPageable
.
getPageNumber
(),
commonPageable
.
getPageSize
());
Page
page
=
new
Page
<>(
commonPageable
.
getPageNumber
(),
commonPageable
.
getPageSize
());
Page
<
Map
<
String
,
Object
>>
page1
=
fireFightingSystemMapper
.
getWaterInfoList
(
page
,
bizOrgCode
,
stationOrder
,
stateOrder
);
Page
<
Map
<
String
,
Object
>>
page1
=
fireFightingSystemMapper
.
getWaterInfoList
(
page
,
bizOrgCode
,
stationOrder
,
stateOrder
,
status
);
List
<
Map
<
String
,
Object
>>
res
=
page1
.
getRecords
();
List
<
Map
<
String
,
Object
>>
res
=
page1
.
getRecords
();
if
(!
res
.
isEmpty
())
{
if
(!
res
.
isEmpty
())
{
List
<
Map
<
String
,
Object
>>
infoList
=
fireFightingSystemMapper
.
getWaterInfoByBizOrgName
(
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
infoList
=
fireFightingSystemMapper
.
getWaterInfoByBizOrgName
(
bizOrgCode
);
...
@@ -245,17 +252,17 @@ public class PoolStatisticController {
...
@@ -245,17 +252,17 @@ public class PoolStatisticController {
Map
<
String
,
Object
>
transResult
=
UnitTransformUtil
.
transformValues
(
String
.
valueOf
(
m
.
get
(
"nowLevel"
)),
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"
)));
String
.
valueOf
(
m
.
get
(
"unit"
)),
String
.
valueOf
(
m
.
get
(
"minLevel"
)),
String
.
valueOf
(
m
.
get
(
"maxLevel"
)));
m
.
put
(
"nowLevel"
,
transResult
.
get
(
"nowValue"
));
m
.
put
(
"nowLevel"
,
transResult
.
get
(
"nowValue"
));
if
(
StringUtil
.
isNotEmpty
(
IndexStatusEnum
.
getEnumByKey
(
String
.
valueOf
(
transResult
.
get
(
"status"
)))))
{
//
if (StringUtil.isNotEmpty(IndexStatusEnum.getEnumByKey(String.valueOf(transResult.get("status"))))) {
if
(
IndexStatusEnum
.
LOW
.
getKey
().
equals
(
String
.
valueOf
(
transResult
.
get
(
"status"
))))
{
//
if (IndexStatusEnum.LOW.getKey().equals(String.valueOf(transResult.get("status")))) {
m
.
put
(
"status"
,
1
);
//
m.put("status", 1);
}
else
if
(
IndexStatusEnum
.
HIGH
.
getKey
().
equals
(
String
.
valueOf
(
transResult
.
get
(
"status"
))))
{
//
} else if (IndexStatusEnum.HIGH.getKey().equals(String.valueOf(transResult.get("status")))) {
m
.
put
(
"status"
,
1
);
//
m.put("status", 1);
}
else
{
//
} else {
m
.
put
(
"status"
,
0
);
//
m.put("status", 0);
}
//
}
}
else
{
//
} else {
m
.
put
(
"status"
,
0
);
//
m.put("status", 0);
}
//
}
m
.
put
(
"abs"
,
transResult
.
get
(
"abs"
));
m
.
put
(
"abs"
,
transResult
.
get
(
"abs"
));
if
(!
String
.
valueOf
(
transResult
.
get
(
"abs"
)).
equals
(
"--"
)
&&
!
ObjectUtils
.
isEmpty
(
m
.
get
(
"volume"
)))
{
if
(!
String
.
valueOf
(
transResult
.
get
(
"abs"
)).
equals
(
"--"
)
&&
!
ObjectUtils
.
isEmpty
(
m
.
get
(
"volume"
)))
{
BigDecimal
divide
=
new
BigDecimal
(
100
);
BigDecimal
divide
=
new
BigDecimal
(
100
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
View file @
cff3c7d1
...
@@ -356,7 +356,7 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
...
@@ -356,7 +356,7 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
* @param bizOrgCode
* @param bizOrgCode
* @return
* @return
*/
*/
Page
<
Map
<
String
,
Object
>>
getWaterInfoList
(
Page
page
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
"stationOrder"
)
String
stationOrder
,
@Param
(
"stateOrder"
)
String
stateOrder
);
Page
<
Map
<
String
,
Object
>>
getWaterInfoList
(
Page
page
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
"stationOrder"
)
String
stationOrder
,
@Param
(
"stateOrder"
)
String
stateOrder
,
@Param
(
"status"
)
String
status
);
/**
/**
* 水源信息统计
* 水源信息统计
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
cff3c7d1
...
@@ -5022,11 +5022,11 @@
...
@@ -5022,11 +5022,11 @@
</select>
</select>
<select
id=
"getWaterInfoList"
resultType=
"java.util.Map"
>
<select
id=
"getWaterInfoList"
resultType=
"java.util.Map"
>
SELECT * FROM (
select
select
*,
*,
(
(
CASE
CASE
WHEN nowLevel IS NOT NULL
WHEN nowLevel IS NOT NULL
AND maxLevel IS NOT NULL
AND maxLevel IS NOT NULL
AND nowLevel - maxLevel > 0 THEN
AND nowLevel - maxLevel > 0 THEN
...
@@ -5035,11 +5035,11 @@
...
@@ -5035,11 +5035,11 @@
AND minLevel IS NOT NULL
AND minLevel IS NOT NULL
AND nowLevel != '--'
AND nowLevel != '--'
AND nowLevel - minLevel >= 0 THEN
AND nowLevel - minLevel >= 0 THEN
'
2
'
'
0
'
WHEN nowLevel IS NOT NULL
WHEN nowLevel IS NOT NULL
AND minLevel IS NOT NULL AND nowLevel != '--'
AND minLevel IS NOT NULL AND nowLevel != '--'
AND minLevel - nowLevel > 0 THEN
AND minLevel - nowLevel > 0 THEN
'
0' ELSE '4
'
'
1' ELSE '0
'
END
END
) AS `status`
) AS `status`
from (
from (
...
@@ -5147,11 +5147,17 @@
...
@@ -5147,11 +5147,17 @@
r.sequence_nbr
r.sequence_nbr
) a
) a
)) b
)) b
)c
<where>
<if
test=
"status != null and status != ''"
>
c.`status` = #{status}
</if>
</where>
<if
test=
"stationOrder!=null and stationOrder!=''"
>
<if
test=
"stationOrder!=null and stationOrder!=''"
>
ORDER BY CONVERT(bizOrgName USING gbk) ASC
ORDER BY CONVERT(
c.
bizOrgName USING gbk) ASC
</if>
</if>
<if
test=
"stationOrder = null or stationOrder =''"
>
<if
test=
"stationOrder = null or stationOrder =''"
>
ORDER BY CONVERT(bizOrgName USING gbk) DESC
ORDER BY CONVERT(
c.
bizOrgName USING gbk) DESC
</if>
</if>
</select>
</select>
...
...
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