Commit 979eebfa authored by 高建强's avatar 高建强

item:兼容数字化应急预案V1.0.0.2版本,WEB数据组装

parent cce12e04
...@@ -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();
......
#DB properties: #DB properties:
spring.datasource.url = jdbc:mysql://172.16.11.201:3306/dl_business_v3.0.1.3?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8 spring.datasource.url = jdbc:mysql://172.16.11.201:3307/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
......
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment