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
2e1b73e6
Commit
2e1b73e6
authored
Feb 17, 2022
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网络拓扑告警列表位置为null显示问题
parent
40678eab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
StringUtil.java
...java/com/yeejoin/equipmanage/common/utils/StringUtil.java
+9
-0
EquipmentSpecificAlarmServiceImpl.java
...anage/service/impl/EquipmentSpecificAlarmServiceImpl.java
+6
-6
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/utils/StringUtil.java
View file @
2e1b73e6
...
@@ -6,6 +6,7 @@ import java.util.regex.Pattern;
...
@@ -6,6 +6,7 @@ import java.util.regex.Pattern;
import
org.springframework.util.Assert
;
import
org.springframework.util.Assert
;
import
com.baomidou.mybatisplus.core.toolkit.ObjectUtils
;
import
com.yeejoin.equipmanage.common.vo.QRCodeRequest
;
import
com.yeejoin.equipmanage.common.vo.QRCodeRequest
;
/**
/**
...
@@ -149,4 +150,12 @@ public class StringUtil {
...
@@ -149,4 +150,12 @@ public class StringUtil {
}
}
return
code
;
return
code
;
}
}
public
static
String
toString
(
Object
s
){
if
(
ObjectUtils
.
isEmpty
(
s
)){
return
""
;
}
return
String
.
valueOf
(
s
);
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificAlarmServiceImpl.java
View file @
2e1b73e6
...
@@ -241,12 +241,12 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
...
@@ -241,12 +241,12 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
dataVO
.
setFireEquipmentSpecificIndexName
(
String
.
valueOf
(
x
.
get
(
"fireEquipmentSpecificIndexName"
)));
dataVO
.
setFireEquipmentSpecificIndexName
(
String
Util
.
toString
(
x
.
get
(
"fireEquipmentSpecificIndexName"
)));
dataVO
.
setFireEquipmentName
(
String
.
valueOf
(
x
.
get
(
"fireEquipmentName"
)));
dataVO
.
setFireEquipmentName
(
String
Util
.
toString
(
x
.
get
(
"fireEquipmentName"
)));
dataVO
.
setWarehouseStructureName
(
String
.
valueOf
(
x
.
get
(
"warehouseStructureName"
)));
dataVO
.
setWarehouseStructureName
(
String
Util
.
toString
(
x
.
get
(
"warehouseStructureName"
)));
dataVO
.
setEquipmentName
(
null
==
x
.
get
(
"equipmentName"
)
?
null
:
String
.
valueOf
(
x
.
get
(
"equipmentName"
)));
dataVO
.
setEquipmentName
(
StringUtil
.
toString
(
x
.
get
(
"equipmentName"
)));
dataVO
.
setHandleStatus
(
String
.
valueOf
(
x
.
get
(
"handleStatus"
)));
dataVO
.
setHandleStatus
(
String
Util
.
toString
(
x
.
get
(
"handleStatus"
)));
dataVO
.
setStatus
(
String
.
valueOf
(
x
.
get
(
"status"
)));
dataVO
.
setStatus
(
String
Util
.
toString
(
x
.
get
(
"status"
)));
Object
type
=
x
.
get
(
"type"
);
Object
type
=
x
.
get
(
"type"
);
if
(
AlarmTypeEnum
.
HZGJ
.
getCode
().
equals
(
type
)
||
AlarmTypeEnum
.
GZGJ
.
getCode
().
equals
(
type
)
if
(
AlarmTypeEnum
.
HZGJ
.
getCode
().
equals
(
type
)
||
AlarmTypeEnum
.
GZGJ
.
getCode
().
equals
(
type
)
||
AlarmTypeEnum
.
PB
.
getCode
().
equals
(
type
))
{
||
AlarmTypeEnum
.
PB
.
getCode
().
equals
(
type
))
{
...
...
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