更新
This commit is contained in:
@@ -148,6 +148,7 @@ public class StandardCoveyorControlWithScannerDeviceDriver extends AbstractOpcDe
|
||||
scanner.cleanBarcode();
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "清理条码");
|
||||
}
|
||||
|
||||
public synchronized boolean finish_instruction() {
|
||||
try {
|
||||
instructionService.finish(inst);
|
||||
@@ -448,6 +449,7 @@ public class StandardCoveyorControlWithScannerDeviceDriver extends AbstractOpcDe
|
||||
this.instruction_apply_time = date;
|
||||
//container_code
|
||||
TaskDto task = taskserver.findByContainer(container_code);
|
||||
logServer.deviceExecuteLog(device_code, "", "", "申请任务时,根据托盘号:" + container_code + ",查询出来得任务信息是:" + JSON.toJSONString(task));
|
||||
if (!ObjectUtil.isEmpty(task)) {
|
||||
Instruction instdto = instructionService.findByTaskcodeAndStatus(task.getTask_code());
|
||||
if (!StrUtil.equals(instdto.getStart_device_code(), this.device_code)) {
|
||||
@@ -498,6 +500,7 @@ public class StandardCoveyorControlWithScannerDeviceDriver extends AbstractOpcDe
|
||||
/**
|
||||
* 请求指令
|
||||
* 定点任务时请求这里
|
||||
*
|
||||
* @param container_code
|
||||
* @param container_type
|
||||
*/
|
||||
@@ -510,6 +513,7 @@ public class StandardCoveyorControlWithScannerDeviceDriver extends AbstractOpcDe
|
||||
this.instruction_require_time = date;
|
||||
//container_code
|
||||
TaskDto taskdto = taskserver.findByContainer(container_code);
|
||||
logServer.deviceExecuteLog(device_code, "", "", "申请任务时,根据托盘号:" + container_code + ",查询出来得任务信息是:" + JSON.toJSONString(taskdto));
|
||||
if (!ObjectUtil.isEmpty(taskdto)) {
|
||||
if (!ObjectUtils.isEmpty(instructionService.findByTaskcodeAndStatus(taskdto.getTask_code()))) {
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "申请任务时该载具号" + container_code
|
||||
|
||||
Reference in New Issue
Block a user