Commit db06b007 zshaohui

bug修改

1 个父辈 e8f5305b
package com.neotel.smfcore.common.init;
import com.neotel.smfcore.core.device.enums.OP_STATUS;
import com.neotel.smfcore.core.order.LiteOrderCache;
import com.neotel.smfcore.core.system.service.manager.IDataLogManager;
import com.neotel.smfcore.core.system.service.po.DataLog;
......@@ -46,7 +47,16 @@ public class MainTimer {
log.info("开始加载未完成的任务...");
List<DataLog> unExecuteTasks = dataLogManager.findUnFinishedTasks();
for (DataLog unExecuteTask : unExecuteTasks) {
if (unExecuteTask.isExecuting() || unExecuteTask.isWait()||unExecuteTask.isOutBox()||unExecuteTask.isInLine()|| unExecuteTask.isInRobot()||unExecuteTask.isBoxdoor()) {
if (unExecuteTask.isExecuting()
|| unExecuteTask.isWait()
||unExecuteTask.isOutBox()
||unExecuteTask.isInLine()
|| unExecuteTask.isInRobot()
||unExecuteTask.isBoxdoor()
||unExecuteTask.getStatus().equals(OP_STATUS.OUTTING.name())
||unExecuteTask.getStatus().equals(OP_STATUS.OUTBOX.name())
||unExecuteTask.getStatus().equals(OP_STATUS.ON_LINE.name())
) {
try {
taskService.addTaskToExecute(unExecuteTask);
}catch (Exception e){
......
......@@ -996,13 +996,12 @@ public class DeviceController {
}
}
}
//然后找lock库位,有的话返回
//没库位查找一个库位,如果是里面的,判断外面需要没料
//如果是外面的锁定为Lock
else {
hasReel = false;
}
}
//然后找lock库位,有的话返回
//没库位查找一个库位,如果是里面的,判断外面需要没料
//如果是外面的锁定为Lock
else {
hasReel = false;
}
Map<String, Object> resultMap = new HashMap<>();
......
......@@ -583,6 +583,11 @@ public class JkemController {
if (StringUtils.isEmpty(export)) {
return ResultBean.newOkResult("");
}
if (export.endsWith("_1")){
return ResultBean.newOkResult("");
}
//找到所有出料口相同的任务
List<DataLog> sameExportDatalogList = new ArrayList<>();
for (DataLog dataLog : allTasks) {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!