|
|
|
@ -50,17 +50,19 @@ public class ExtraResolveStrategyService {
|
|
|
|
|
if(StringUtil.isNotBlank(functionCode)) { |
|
|
|
|
XxlJobLogger.log("函数编号为:" + functionCode); |
|
|
|
|
FuncRouteEnum funcRouteEnum = FuncRouteEnum.getEnumByFuncCode(functionCode); |
|
|
|
|
switch (funcRouteEnum) { |
|
|
|
|
case DIAGNOSE: |
|
|
|
|
return this.resolveDiagnose(extra); |
|
|
|
|
case CHOOSE_STATION: |
|
|
|
|
return this.resolveChooseStation(extra); |
|
|
|
|
case CHOOSE_VIDEO: |
|
|
|
|
return this.resolveChooseVideo(extra); |
|
|
|
|
case CHOOSE_CANVAS: |
|
|
|
|
return this.resolveChooseScada(extra); |
|
|
|
|
default: |
|
|
|
|
break; |
|
|
|
|
if(Func.isNotEmpty(funcRouteEnum)) { |
|
|
|
|
switch (funcRouteEnum) { |
|
|
|
|
case DIAGNOSE: |
|
|
|
|
return this.resolveDiagnose(extra); |
|
|
|
|
case CHOOSE_STATION: |
|
|
|
|
return this.resolveChooseStation(extra); |
|
|
|
|
case CHOOSE_VIDEO: |
|
|
|
|
return this.resolveChooseVideo(extra); |
|
|
|
|
case CHOOSE_CANVAS: |
|
|
|
|
return this.resolveChooseScada(extra); |
|
|
|
|
default: |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return JSONObject.parseObject(JSON.toJSONString(extra),ExtraVO.class); |
|
|
|
|