|
@ -2,6 +2,7 @@ package org.nl.acs.device_driver.maGang; |
|
|
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
import cn.hutool.core.date.DateUtil; |
|
|
import cn.hutool.core.util.IdUtil; |
|
|
import cn.hutool.core.util.IdUtil; |
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
import cn.hutool.core.util.StrUtil; |
|
|
import cn.hutool.core.util.StrUtil; |
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import lombok.Data; |
|
|
import lombok.Data; |
|
@ -185,6 +186,12 @@ public class MaGangConveyorDeviceDriver extends AbstractOpcDeviceDriver implemen |
|
|
return false; |
|
|
return false; |
|
|
} else { |
|
|
} else { |
|
|
this.instruction_require_time = date; |
|
|
this.instruction_require_time = date; |
|
|
|
|
|
//查询任务表中是否有同一起点的任务
|
|
|
|
|
|
List<TaskDto> taskDtos = taskserver.queryTaskByStartDeviceCode(this.getDevice_code()); |
|
|
|
|
|
//如果有就不生成任务
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(taskDtos)) { |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
List<String> link_device_codes = this.getExtraDeviceCodes("link_device_code"); |
|
|
List<String> link_device_codes = this.getExtraDeviceCodes("link_device_code"); |
|
|
String next_device_code = ""; |
|
|
String next_device_code = ""; |
|
|
MaGangConveyorDeviceDriver maGangConveyorDeviceDriver; |
|
|
MaGangConveyorDeviceDriver maGangConveyorDeviceDriver; |
|
|