Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
6c3f38a9
Commit
6c3f38a9
authored
Apr 08, 2021
by
吴俊凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改提交
parent
dc2e9c07
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
ContingencyAction.java
...m/yeejoin/amos/fas/business/action/ContingencyAction.java
+5
-4
ContingencyRo.java
...yeejoin/amos/fas/business/action/model/ContingencyRo.java
+1
-1
ContingencyPlanServiceImpl.java
...fas/business/service/impl/ContingencyPlanServiceImpl.java
+2
-0
HandlerMqttMessageImpl.java
...mos/fas/business/service/impl/HandlerMqttMessageImpl.java
+2
-2
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/ContingencyAction.java
View file @
6c3f38a9
...
@@ -347,13 +347,13 @@ public class ContingencyAction implements CustomerAction {
...
@@ -347,13 +347,13 @@ public class ContingencyAction implements CustomerAction {
SafteyPlanResult
result
=
new
SafteyPlanResult
();
SafteyPlanResult
result
=
new
SafteyPlanResult
();
Map
<
String
,
Object
>
tempmap1
=
new
HashMap
<>();
Map
<
String
,
Object
>
tempmap1
=
new
HashMap
<>();
try
{
try
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"YYYY/MM/DD
HH:mm:ss"
);
SimpleDateFormat
sdf
1
=
new
SimpleDateFormat
(
"yyyy-MM-dd
HH:mm:ss"
);
List
<
ContingencyPlanInstance
>
list
=
iContingencyInstance
.
queryForTimeLine
(
contingencyRo
.
getBatchNo
(),
"MESSAGE"
);
List
<
ContingencyPlanInstance
>
list
=
iContingencyInstance
.
queryForTimeLine
(
contingencyRo
.
getBatchNo
(),
"MESSAGE"
);
ArrayList
records
=
new
ArrayList
<>();
ArrayList
records
=
new
ArrayList
<>();
if
(!
ObjectUtils
.
isEmpty
(
list
))
{
if
(!
ObjectUtils
.
isEmpty
(
list
))
{
list
.
forEach
(
action
->
{
list
.
forEach
(
action
->
{
HashMap
map
=
new
HashMap
();
HashMap
map
=
new
HashMap
();
map
.
put
(
"time"
,
sdf
.
format
(
action
.
getCreateDat
e
()));
map
.
put
(
"time"
,
sdf
1
.
format
(
action
.
getCreateDate
().
getTim
e
()));
map
.
put
(
"stepName"
,
action
.
getContent
());
map
.
put
(
"stepName"
,
action
.
getContent
());
records
.
add
(
map
);
records
.
add
(
map
);
});
});
...
@@ -554,13 +554,14 @@ public class ContingencyAction implements CustomerAction {
...
@@ -554,13 +554,14 @@ public class ContingencyAction implements CustomerAction {
SafteyPlanResult
result
=
new
SafteyPlanResult
();
SafteyPlanResult
result
=
new
SafteyPlanResult
();
Map
<
String
,
Object
>
tempmap1
=
new
HashMap
<>();
Map
<
String
,
Object
>
tempmap1
=
new
HashMap
<>();
try
{
try
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"YYYY/MM/DD
HH:mm:ss"
);
SimpleDateFormat
sdf
1
=
new
SimpleDateFormat
(
"yyyy-MM-dd
HH:mm:ss"
);
List
<
ContingencyPlanInstance
>
list
=
iContingencyInstance
.
queryForTimeLine
(
contingencyRo
.
getBatchNo
(),
"MESSAGE"
);
List
<
ContingencyPlanInstance
>
list
=
iContingencyInstance
.
queryForTimeLine
(
contingencyRo
.
getBatchNo
(),
"MESSAGE"
);
ArrayList
records
=
new
ArrayList
<>();
ArrayList
records
=
new
ArrayList
<>();
if
(!
ObjectUtils
.
isEmpty
(
list
))
{
if
(!
ObjectUtils
.
isEmpty
(
list
))
{
list
.
forEach
(
action
->
{
list
.
forEach
(
action
->
{
HashMap
map
=
new
HashMap
();
HashMap
map
=
new
HashMap
();
map
.
put
(
"time"
,
sdf
.
format
(
action
.
getCreateDate
()));
// map.put("time", sdf.format(action.getCreateDate()));
map
.
put
(
"time"
,
sdf1
.
format
(
action
.
getCreateDate
().
getTime
()));
map
.
put
(
"stepName"
,
action
.
getContent
());
map
.
put
(
"stepName"
,
action
.
getContent
());
records
.
add
(
map
);
records
.
add
(
map
);
});
});
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/model/ContingencyRo.java
View file @
6c3f38a9
...
@@ -16,7 +16,7 @@ public class ContingencyRo implements Serializable {
...
@@ -16,7 +16,7 @@ public class ContingencyRo implements Serializable {
/**
/**
*
*
*/
*/
private
static
final
long
serialVersionUID
=
1863437780244849215
L
;
private
static
final
long
serialVersionUID
=
-
6721135143373410586
L
;
@Label
(
"消防设备名称"
)
@Label
(
"消防设备名称"
)
private
String
fireEquipmentName
;
//消防设备名称
private
String
fireEquipmentName
;
//消防设备名称
@Label
(
"消防设备id"
)
@Label
(
"消防设备id"
)
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyPlanServiceImpl.java
View file @
6c3f38a9
...
@@ -412,6 +412,8 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
...
@@ -412,6 +412,8 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
}
}
PlanDetail
planEntity
=
new
PlanDetail
();
PlanDetail
planEntity
=
new
PlanDetail
();
BeanUtils
.
copyProperties
(
planDetail
,
planEntity
);
BeanUtils
.
copyProperties
(
planDetail
,
planEntity
);
planEntity
.
setOrgCode
(
oldPlan
.
getOrgCode
());
planEntity
.
setCreator
(
oldPlan
.
getCreator
());
planDetailDao
.
saveAndFlush
(
planEntity
);
planDetailDao
.
saveAndFlush
(
planEntity
);
planDoc
.
setPlanId
(
planId
);
planDoc
.
setPlanId
(
planId
);
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/HandlerMqttMessageImpl.java
View file @
6c3f38a9
...
@@ -433,9 +433,9 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
...
@@ -433,9 +433,9 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
}
}
contingencyRo
.
setTelemetryMap
(
telemetryMap
);
contingencyRo
.
setTelemetryMap
(
telemetryMap
);
log
.
debug
(
"开始调用规则 参数 contingencyRo{},reservePlan{},equipmentNames"
+
contingencyRo
.
toString
()+
","
+
equipment
.
getReservePlan
()+
","
+
ArrayUtils
.
toArray
(
equipment
.
getName
()));
log
.
info
(
"开始调用规则 参数 contingencyRo{},reservePlan{},equipmentNames"
+
contingencyRo
.
toString
()+
","
+
equipment
.
getReservePlan
()+
","
+
ArrayUtils
.
toArray
(
equipment
.
getName
()));
Object
result
=
ruleTrigger
.
publish
(
contingencyRo
,
equipment
.
getReservePlan
(),
ArrayUtils
.
toArray
(
equipment
.
getName
()));
Object
result
=
ruleTrigger
.
publish
(
contingencyRo
,
equipment
.
getReservePlan
(),
ArrayUtils
.
toArray
(
equipment
.
getName
()));
log
.
debug
(
"规则调用返回=="
,
result
);
log
.
info
(
"规则调用返回=="
,
result
);
ContingencyOriginalData
contingencyOriginalData
=
new
ContingencyOriginalData
();
ContingencyOriginalData
contingencyOriginalData
=
new
ContingencyOriginalData
();
BeanUtils
.
copyProperties
(
contingencyRo
,
contingencyOriginalData
);
BeanUtils
.
copyProperties
(
contingencyRo
,
contingencyOriginalData
);
...
...
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