Commit 8b86a16d authored by 高建强's avatar 高建强

item:地图动作添加配置文件

parent 0555c50e
package com.yeejoin.amos.fas.common.enums;
/**
* @ProjectName: YeeAmosFireAutoSysRoot
* @Package: com.yeejoin.amos.fas.common.enums
* @ClassName: ContingencyActionEnum
* @Author: Jianqiang Gao
* @Description: 预案动作枚举
* @Date: 2022/6/17 9:34
* @Version: 1.0
*/
public enum ContingencyActionEnum {
ACTION1_2("action1-2", "镜头切换(旋转+推进)"),
;
private String key;
private String value;
ContingencyActionEnum(String key, String value) {
this.key = key;
this.value = value;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}
......@@ -30,7 +30,6 @@ import com.yeejoin.amos.fas.business.service.model.ToipResponse;
import com.yeejoin.amos.fas.business.util.CacheFactory;
import com.yeejoin.amos.fas.business.util.CacheMap;
import com.yeejoin.amos.fas.business.vo.Toke;
import com.yeejoin.amos.fas.common.enums.ContingencyActionEnum;
import com.yeejoin.amos.fas.common.enums.ContingencyPlanStatusEnum;
import com.yeejoin.amos.fas.common.enums.PlanRecordStatusEnum;
import com.yeejoin.amos.fas.core.enums.NumberEnum;
......@@ -122,6 +121,8 @@ public class ContingencyAction implements CustomerAction {
@Value("${rocket-plan-topic}")
private String rocketTopic;
@Value("${maparea.action.is-area}")
private String isArea;
private static Map<String, String> OPERATE_RECORD_ID = new HashMap<>();
......@@ -642,7 +643,7 @@ public class ContingencyAction implements CustomerAction {
tempmap1.put("key", actionName);
tempmap1.put("content", paramJSON);
if (ContingencyActionEnum.ACTION1_2.getKey().equalsIgnoreCase(paramJSON)) {
if (isArea.contains(paramJSON)) {
tempmap1.put("isArea", true);
} else {
tempmap1.put("isArea", false);
......@@ -876,10 +877,10 @@ public class ContingencyAction implements CustomerAction {
if (ObjectUtils.isEmpty(batchNo)) {
return;
}
content.put("batchNo",batchNo );
content.put("batchNo", batchNo);
tempmap1.put("type", "buttonCache");
tempmap1.put("content",content);
tempmap1.put("content", content);
result.add(tempmap1);
this.sendcmd("message", result);
......
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