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
979eebfa
Commit
979eebfa
authored
Dec 16, 2022
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:兼容数字化应急预案V1.0.0.2版本,WEB数据组装
parent
cce12e04
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
15 deletions
+57
-15
ContingencyAction.java
...m/yeejoin/amos/fas/business/action/ContingencyAction.java
+18
-13
application-dev.properties
...utoSysStart/src/main/resources/application-dev.properties
+5
-2
fas-2.0.1.xml
...utoSysStart/src/main/resources/db/changelog/fas-2.0.1.xml
+34
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/ContingencyAction.java
View file @
979eebfa
...
@@ -146,6 +146,9 @@ public class ContingencyAction implements CustomerAction {
...
@@ -146,6 +146,9 @@ public class ContingencyAction implements CustomerAction {
@Value
(
"${plan.default.roleCode}"
)
@Value
(
"${plan.default.roleCode}"
)
private
String
defaultRoleCode
;
private
String
defaultRoleCode
;
@Value
(
"${plan.web.isUpdatePlanStep}"
)
private
Boolean
isUpdatePlanStep
;
private
static
Map
<
String
,
String
>
OPERATE_RECORD_ID
=
new
HashMap
<>();
private
static
Map
<
String
,
String
>
OPERATE_RECORD_ID
=
new
HashMap
<>();
private
static
Map
<
String
,
Map
<
String
,
String
>>
stringStringMap
=
new
HashMap
<>();
private
static
Map
<
String
,
Map
<
String
,
String
>>
stringStringMap
=
new
HashMap
<>();
...
@@ -468,19 +471,21 @@ public class ContingencyAction implements CustomerAction {
...
@@ -468,19 +471,21 @@ public class ContingencyAction implements CustomerAction {
result
.
add
(
tempmap1
);
result
.
add
(
tempmap1
);
this
.
sendcmd
(
"optionarea"
,
paramObj
,
result
);
this
.
sendcmd
(
"optionarea"
,
paramObj
,
result
);
try
{
if
(!
isUpdatePlanStep
)
{
System
.
out
.
println
(
"======optionarea 加入队列参数信息======action====="
);
try
{
System
.
out
.
println
(
"======optionarea 加入队列参数信息======action====="
);
ButtonJsonVO
buttonJsonVO
=
JSONObject
.
parseObject
(
buttonJson
,
ButtonJsonVO
.
class
);
Map
<
String
,
Object
>
map
=
buttonJsonVO
.
getOperate
().
get
(
buttonJsonVO
.
getOperate
().
size
()
-
1
);
ButtonJsonVO
buttonJsonVO
=
JSONObject
.
parseObject
(
buttonJson
,
ButtonJsonVO
.
class
);
System
.
out
.
println
(
"batchNo-->"
+
batchNo
);
Map
<
String
,
Object
>
map
=
buttonJsonVO
.
getOperate
().
get
(
buttonJsonVO
.
getOperate
().
size
()
-
1
);
System
.
out
.
println
(
"stepCode-->"
+
stepCode
);
System
.
out
.
println
(
"batchNo-->"
+
batchNo
);
System
.
out
.
println
(
"stepCodeNew-->"
+
buttonJsonVO
.
getStepCode
());
System
.
out
.
println
(
"stepCode-->"
+
stepCode
);
System
.
out
.
println
(
"contingencyPlanId-->"
+
contingencyPlanId
);
System
.
out
.
println
(
"stepCodeNew-->"
+
buttonJsonVO
.
getStepCode
());
System
.
out
.
println
(
"buttonCode-->"
+
map
.
get
(
"code"
).
toString
());
System
.
out
.
println
(
"contingencyPlanId-->"
+
contingencyPlanId
);
iContingencyInstance
.
fire
(
batchNo
,
buttonJsonVO
.
getStepCode
(),
contingencyPlanId
,
map
.
get
(
"code"
).
toString
(),
"CANCEL_0"
,
"A"
,
"false"
,
RequestContext
.
getToken
(),
RequestContext
.
getProduct
(),
RequestContext
.
getAppKey
());
System
.
out
.
println
(
"buttonCode-->"
+
map
.
get
(
"code"
).
toString
());
}
catch
(
Exception
e
)
{
iContingencyInstance
.
fire
(
batchNo
,
buttonJsonVO
.
getStepCode
(),
contingencyPlanId
,
map
.
get
(
"code"
).
toString
(),
"CANCEL_0"
,
"A"
,
"false"
,
RequestContext
.
getToken
(),
RequestContext
.
getProduct
(),
RequestContext
.
getAppKey
());
log
.
error
(
"optionarea 加入队列失败-->"
+
e
.
getMessage
());
}
catch
(
Exception
e
)
{
log
.
error
(
"optionarea 加入队列失败-->"
+
e
.
getMessage
());
}
}
}
MessageVO
messageVO
=
new
MessageVO
();
MessageVO
messageVO
=
new
MessageVO
();
...
...
YeeAmosFireAutoSysStart/src/main/resources/application-dev.properties
View file @
979eebfa
#DB properties:
#DB properties:
spring.datasource.url
=
jdbc:mysql://172.16.11.201:330
6
/dl_business_v3.0.1.3?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.url
=
jdbc:mysql://172.16.11.201:330
7
/dl_business_v3.0.1.3?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.username
=
root
spring.datasource.password
=
Yeejoin@2020
spring.datasource.password
=
Yeejoin@2020
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
...
@@ -91,7 +91,7 @@ rocket-plan-topic =topic_fire_emergency_plan
...
@@ -91,7 +91,7 @@ rocket-plan-topic =topic_fire_emergency_plan
rocket-equip-alarm-topic
=
topic_fire_equip_alarm
rocket-equip-alarm-topic
=
topic_fire_equip_alarm
#规则ip配置,用于多网卡及docker镜像启动时添加
#规则ip配置,用于多网卡及docker镜像启动时添加
#rule.definition.local-ip=172.16.11.201
rule.definition.local-ip
=
172.16.3.122
#3Dtype 分为web和ue
#3Dtype 分为web和ue
integrated3Dtype
=
web
integrated3Dtype
=
web
...
@@ -99,6 +99,9 @@ integrated3Dtype =web
...
@@ -99,6 +99,9 @@ integrated3Dtype =web
#数据同步开关
#数据同步开关
systemctl.sync.switch
=
false
systemctl.sync.switch
=
false
#数字化应急预案V1.0.0.2版本,WEB数据组装,值为true,默认false
plan.web.isUpdatePlanStep
=
false
#地图动作区域展示
#地图动作区域展示
maparea.action.is-area
=
action1-2,action1-6
maparea.action.is-area
=
action1-2,action1-6
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/changelog/fas-2.0.1.xml
View file @
979eebfa
...
@@ -821,4 +821,37 @@
...
@@ -821,4 +821,37 @@
MODIFY COLUMN `update_date` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) AFTER `create_user`;
MODIFY COLUMN `update_date` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) AFTER `create_user`;
</sql>
</sql>
</changeSet>
</changeSet>
<changeSet
author=
"gaojianqiang"
id=
"20221216-01"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"cb_org_usr"
columnName=
"personImg"
/>
</not>
</preConditions>
<comment>
cb_org_usr add column personImg
</comment>
<sql>
alter table `cb_org_usr` add column `personImg` text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '人员照片';
</sql>
</changeSet>
<changeSet
author=
"gaojianqiang"
id=
"20221216-02"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"cb_org_usr"
columnName=
"job_title"
/>
</not>
</preConditions>
<comment>
cb_org_usr add column job_title
</comment>
<sql>
alter table `cb_org_usr` add column job_title text CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '岗位名称';
</sql>
</changeSet>
<changeSet
author=
"gaojianqiang"
id=
"20221216-03"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"cb_org_usr"
columnName=
"telephone"
/>
</not>
</preConditions>
<comment>
cb_org_usr add column telephone
</comment>
<sql>
alter table `cb_org_usr` add column `telephone` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '人员电话';
</sql>
</changeSet>
</databaseChangeLog>
</databaseChangeLog>
\ No newline at end of file
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