REM:
1. 增加迪普旁路牵引设备类型支持
This commit is contained in:
HuangXin 2021-01-13 18:40:18 +08:00
parent c76599e5d8
commit ef48a292f5
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package com.dispose.ability.impl;
/**
* The type Dp tech bypass ability.
*
* @author <huangxin@cmhi.chinamoblie.com>
*/
public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
/**
* Period task runtime.
*/
@Override
public void periodTaskRuntime() {
super.periodTaskRuntime();
}
}

View File

@ -531,6 +531,7 @@ public class DeviceTaskManagerServiceImpl implements DeviceTaskManagerService {
// 启动新任务
switch (ai.getDev().getDeviceType()) {
case DPTECH_UMC:
case DPTECH_BYPASS_UMC:
dpTechDeviceTaskRun(ai, v, task);
break;
@ -604,6 +605,7 @@ public class DeviceTaskManagerServiceImpl implements DeviceTaskManagerService {
switch (ai.getDev().getDeviceType()) {
case DPTECH_UMC:
case DPTECH_BYPASS_UMC:
dpTechDeviceTaskStop(ai, v, task);
break;

View File

@ -2,6 +2,7 @@ package com.dispose.service.impl;
import com.dispose.ability.DisposeAbility;
import com.dispose.ability.impl.DpTechAbilityImpl;
import com.dispose.ability.impl.DpTechBypassAbilityImpl;
import com.dispose.ability.impl.HaoHanAbilityImpl;
import com.dispose.ability.impl.HuaWeiAbilityImpl;
import com.dispose.ability.impl.PengXinAbilityImpl;
@ -124,6 +125,9 @@ public class DisposeAbilityRouterServiceImpl implements DisposeAbilityRouterServ
case VIRTUAL_DISPOSE:
db = new VirtualAbilityImpl();
break;
case DPTECH_BYPASS_UMC:
db = new DpTechBypassAbilityImpl();
break;
default:
log.error("Unknown dispose device type: {}", dev.getDeviceType());
return ErrorCode.ERR_PARAMS;