Commit fd47a95c authored by 高建强's avatar 高建强

item:应急处置执行推送优化

parent 6b552ae4
...@@ -425,7 +425,7 @@ public class ContingencyInstanceImpl implements IContingencyInstance { ...@@ -425,7 +425,7 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
map.put("confirm", buttonState); map.put("confirm", buttonState);
map.put("contingencyPlanId", contingencyPlanId); map.put("contingencyPlanId", contingencyPlanId);
map.put("stepState", stepStateOnbutton); map.put("stepState", stepStateOnbutton);
if (StringUtils.isNotBlank(token) || StringUtils.isNotBlank(product)) { if (StringUtils.isBlank(token) || StringUtils.isBlank(product)) {
Toke serverToken = remoteSecurityService.getServerToken(); Toke serverToken = remoteSecurityService.getServerToken();
map.put("token", serverToken.getToke()); map.put("token", serverToken.getToke());
map.put("product", serverToken.getProduct()); map.put("product", serverToken.getProduct());
...@@ -441,10 +441,13 @@ public class ContingencyInstanceImpl implements IContingencyInstance { ...@@ -441,10 +441,13 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
@Override @Override
public ContingencyPlanInstance updateExtendColumn(ContingencyPlanInstance contingencyPlanInstance) { public ContingencyPlanInstance updateExtendColumn(ContingencyPlanInstance contingencyPlanInstance) {
String token = RequestContext.getToken();
if (StringUtils.isBlank(token)) {
Toke toke = remoteSecurityService.getServerToken(); Toke toke = remoteSecurityService.getServerToken();
RequestContext.setToken(toke.getToke()); RequestContext.setToken(toke.getToke());
RequestContext.setProduct(toke.product); RequestContext.setProduct(toke.product);
RequestContext.setAppKey(toke.appKey); RequestContext.setAppKey(toke.appKey);
}
FeignClientResult<AgencyUserModel> feignClientResult = Privilege.agencyUserClient.getme(); FeignClientResult<AgencyUserModel> feignClientResult = Privilege.agencyUserClient.getme();
AgencyUserModel user = (AgencyUserModel) feignClientResult.getResult(); AgencyUserModel user = (AgencyUserModel) feignClientResult.getResult();
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
"stepStatus": "0", "stepStatus": "0",
"buttonCode": "HANDOVER_COMMAND", "buttonCode": "HANDOVER_COMMAND",
"isParallel": "1", "isParallel": "1",
"roleCode": "Digital_Responsing_Plan_B" "roleCode": "Digital_Responsing_Plan_A"
}, },
{ {
"stepCode": "9", "stepCode": "9",
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
"stepStatus": "0", "stepStatus": "0",
"buttonCode": "START_VALVE_HALL_CONTINGENCY", "buttonCode": "START_VALVE_HALL_CONTINGENCY",
"isParallel": "0", "isParallel": "0",
"roleCode": "Digital_Responsing_Plan_B" "roleCode": "Digital_Responsing_Plan_A"
}, },
{ {
"stepCode": "11", "stepCode": "11",
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
"stepStatus": "0", "stepStatus": "0",
"buttonCode": "PLUG_CABLETRENCH", "buttonCode": "PLUG_CABLETRENCH",
"isParallel": "0", "isParallel": "0",
"roleCode": "Digital_Responsing_Plan_B" "roleCode": "Digital_Responsing_Plan_A"
}, },
{ {
"stepCode": "12", "stepCode": "12",
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
"stepStatus": "0", "stepStatus": "0",
"buttonCode": "HANDOVER_FIGTHHING", "buttonCode": "HANDOVER_FIGTHHING",
"isParallel": "0", "isParallel": "0",
"roleCode": "Digital_Responsing_Plan_B" "roleCode": "Digital_Responsing_Plan_A"
}, },
{ {
"stepCode": "13", "stepCode": "13",
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
"stepStatus": "0", "stepStatus": "0",
"buttonCode": "FIRE_EXTINCT", "buttonCode": "FIRE_EXTINCT",
"isParallel": "0", "isParallel": "0",
"roleCode": "Digital_Responsing_Plan_B" "roleCode": "Digital_Responsing_Plan_A"
}, },
{ {
"stepCode": "14", "stepCode": "14",
...@@ -117,6 +117,6 @@ ...@@ -117,6 +117,6 @@
"stepStatus": "0", "stepStatus": "0",
"buttonCode": "END_EMERGENCY", "buttonCode": "END_EMERGENCY",
"isParallel": "1", "isParallel": "1",
"roleCode": "Digital_Responsing_Plan_C" "roleCode": "Digital_Responsing_Plan_A"
} }
] ]
\ 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