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
5dc748fd
Commit
5dc748fd
authored
Aug 15, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
e932ba96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
RiskSourceServiceImpl.java
...ejoin/equipmanage/service/impl/RiskSourceServiceImpl.java
+19
-9
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/RiskSourceServiceImpl.java
View file @
5dc748fd
...
...
@@ -74,6 +74,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
SendToMsgRiskEquipInfoVo
equipInfoVo
=
new
SendToMsgRiskEquipInfoVo
();
SendToMsgRiskAlarmInfoVo
equipAlarm
=
new
SendToMsgRiskAlarmInfoVo
();
Map
<
String
,
Object
>
m
=
new
HashMap
<>();
RiskBizInfoVo
infoVo
=
new
RiskBizInfoVo
();
if
(
source
.
equalsIgnoreCase
(
RiskSourceTypeEnum
.
PATROL
.
getName
()))
{
List
<
Map
<
String
,
Object
>>
checkInputItems
=
equipmentSpecificMapper
.
queryCheckInputItemsByCheckId
(
id
);
Map
<
String
,
Object
>
map
=
checkInputItems
.
get
(
0
);
...
...
@@ -102,6 +103,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
m
.
put
(
"checkUser"
,
String
.
valueOf
(
patrolMap
.
get
(
"username"
)));
m
.
put
(
"checkResult"
,
String
.
valueOf
(
patrolMap
.
get
(
"inputStatus"
)));
m
.
put
(
"checkTime"
,
String
.
valueOf
(
patrolMap
.
get
(
"checkTime"
)));
infoVo
.
setSourceSupplyField
(
String
.
valueOf
(
patrolMap
.
get
(
"checkInputId"
)));
}
}
else
if
(
source
.
equalsIgnoreCase
(
RiskSourceTypeEnum
.
EQUIP
.
getName
()))
{
equipmentSpecId
=
id
;
...
...
@@ -148,7 +150,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
}
detailVo
.
setEquipInfo
(
equipInfoVo
);
detailVo
.
setAlarmInfo
(
equipAlarm
);
RiskBizInfoVo
infoVo
=
new
RiskBizInfoVo
();
infoVo
.
setWarningObjectName
(
detailVo
.
getEquipInfo
().
getName
());
infoVo
.
setWarningObjectCode
(
detailVo
.
getEquipInfo
().
getCode
());
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
...
...
@@ -198,15 +200,23 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
contentVo
.
setType
(
"qrcode"
);
break
;
case
"alarmContent"
:
contentVo
.
setLabel
(
u
.
getDescribe
());
contentVo
.
setValue
(
equipAlarm
.
getAlarmContent
());
contentVo
.
setType
(
"text"
);
break
;
if
(!
source
.
equalsIgnoreCase
(
RiskSourceTypeEnum
.
PATROL
.
getName
()))
{
contentVo
.
setLabel
(
u
.
getDescribe
());
contentVo
.
setValue
(
equipAlarm
.
getAlarmContent
());
contentVo
.
setType
(
"text"
);
break
;
}
else
{
break
;
}
case
"alarmDate"
:
contentVo
.
setLabel
(
u
.
getDescribe
());
contentVo
.
setValue
(
equipAlarm
.
getAlarmDate
());
contentVo
.
setType
(
"text"
);
break
;
if
(!
source
.
equalsIgnoreCase
(
RiskSourceTypeEnum
.
PATROL
.
getName
()))
{
contentVo
.
setLabel
(
u
.
getDescribe
());
contentVo
.
setValue
(
equipAlarm
.
getAlarmDate
());
contentVo
.
setType
(
"text"
);
break
;
}
else
{
break
;
}
default
:
log
.
info
(
"方法参数错误 !!!"
);
break
;
...
...
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