|
|
|
@ -16,6 +16,7 @@ import org.springblade.core.tool.utils.Func;
|
|
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.Optional; |
|
|
|
@ -56,11 +57,14 @@ public class ExtraResolveStrategyService {
|
|
|
|
|
private ExtraVO resolveDiagnose(Map<String,Object> extra) { |
|
|
|
|
ExtraVO result = new ExtraVO(); |
|
|
|
|
JSONObject data = JSONObject.parseObject(JSON.toJSONString(extra.get("data"))); |
|
|
|
|
String faultId = data.getString("fault_id"); |
|
|
|
|
String faultName = data.getString("fault_name"); |
|
|
|
|
result.setLabel(faultName); |
|
|
|
|
// TODO 拼接诊断链接
|
|
|
|
|
result.setType(FunctionConstants.TypeEnum.LINK.getType()); |
|
|
|
|
Map<String,Object> params = new HashMap<>(5); |
|
|
|
|
params.put("faultId",data.getString("fault_id")); |
|
|
|
|
params.put("name",data.getString("fault_name")); |
|
|
|
|
params.put("station",data.getString("station_id")); |
|
|
|
|
params.put("fdpDeviceName",data.getString("device_name")); |
|
|
|
|
params.put("fdpOrd",data.getString("ord")); |
|
|
|
|
result.setParams(params); |
|
|
|
|
result.setType(FunctionConstants.TypeEnum.PARAMS.getType()); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|