diff --git a/6.program/wms-empty/src/main/java/com/mt/wms/empty/service/impl/CurrTaskServiceImpl.java b/6.program/wms-empty/src/main/java/com/mt/wms/empty/service/impl/CurrTaskServiceImpl.java index 35e96aa..3989b6c 100644 --- a/6.program/wms-empty/src/main/java/com/mt/wms/empty/service/impl/CurrTaskServiceImpl.java +++ b/6.program/wms-empty/src/main/java/com/mt/wms/empty/service/impl/CurrTaskServiceImpl.java @@ -702,7 +702,7 @@ public class CurrTaskServiceImpl extends BaseService implements CurrTaskService if (currTask.getStatus() != 0) { return R.failed("该任务状态不为未执行,无法执行!"); } - if (currTask.getCacheSatatus()==2||currTask.getIsCache()==1){ + if (currTask.getCacheSatatus()==2&&currTask.getIsCache()==1){ return R.failed("该任务已在缓存队列,状态不为未执行,无法执行!"); } //是否为自动任务