diff --git a/src/main/java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java b/src/main/java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java new file mode 100644 index 00000000..516ca674 --- /dev/null +++ b/src/main/java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java @@ -0,0 +1,17 @@ +package com.dispose.ability.impl; + +/** + * The type Dp tech bypass ability. + * + * @author + */ +public class DpTechBypassAbilityImpl extends DpTechAbilityImpl { + + /** + * Period task runtime. + */ + @Override + public void periodTaskRuntime() { + super.periodTaskRuntime(); + } +} diff --git a/src/main/java/com/dispose/service/impl/DeviceTaskManagerServiceImpl.java b/src/main/java/com/dispose/service/impl/DeviceTaskManagerServiceImpl.java index c5fa9287..f8fa0f7a 100644 --- a/src/main/java/com/dispose/service/impl/DeviceTaskManagerServiceImpl.java +++ b/src/main/java/com/dispose/service/impl/DeviceTaskManagerServiceImpl.java @@ -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; diff --git a/src/main/java/com/dispose/service/impl/DisposeAbilityRouterServiceImpl.java b/src/main/java/com/dispose/service/impl/DisposeAbilityRouterServiceImpl.java index f59ce5d1..e35afa02 100644 --- a/src/main/java/com/dispose/service/impl/DisposeAbilityRouterServiceImpl.java +++ b/src/main/java/com/dispose/service/impl/DisposeAbilityRouterServiceImpl.java @@ -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;