rev:更新
This commit is contained in:
@@ -10,19 +10,21 @@ import org.nl.acs.opc.Device;
|
||||
import org.nl.acs.opc.DeviceAppService;
|
||||
import org.nl.acs.task.service.dto.TaskDto;
|
||||
import org.nl.modules.common.exception.BadRequestException;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @author zhangjiangwei
|
||||
*/
|
||||
@Service
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
public class AgvWaitUtil {
|
||||
|
||||
private final DeviceAppService deviceAppService;
|
||||
|
||||
private final DeviceExecuteLogService deviceExecuteLogService;
|
||||
@Autowired
|
||||
private DeviceAppService deviceAppService;
|
||||
@Autowired
|
||||
private DeviceExecuteLogService deviceExecuteLogService;
|
||||
|
||||
//取货前等待
|
||||
public JSONObject waitInGet(String deviceCode) {
|
||||
@@ -107,7 +109,6 @@ public class AgvWaitUtil {
|
||||
}
|
||||
|
||||
if (device.getDeviceDriver() instanceof PhotoelectricDetectionDeviceDriver) {
|
||||
// 诺力4期对接位驱动
|
||||
PhotoelectricDetectionDeviceDriver driver = (PhotoelectricDetectionDeviceDriver) device.getDeviceDriver();
|
||||
if (driver.getMove() == 0) {
|
||||
String message = "允许AGV放货。";
|
||||
|
||||
@@ -10,8 +10,8 @@ import com.alibaba.fastjson.JSONObject;
|
||||
*/
|
||||
public enum DriverTypeEnum {
|
||||
ORDINARY_SITE(1, "standard_ordinary_site", "普通站点", "station"),
|
||||
|
||||
PHOTOELECTRIC_DETECTION_DEVICE_DRIVER(2, "photoelectric_detection_station", "光电检测站点", "station");
|
||||
STANDARD_STORAGE(2, "standard_storage", "标准版-货架", "storage"),
|
||||
PHOTOELECTRIC_DETECTION_DEVICE_DRIVER(3, "photoelectric_detection_station", "光电检测站点", "station");
|
||||
//驱动索引
|
||||
private int index;
|
||||
//驱动编码
|
||||
|
||||
@@ -876,7 +876,7 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial
|
||||
celldto.setZ("0");
|
||||
celldto.setAddress(0);
|
||||
celldto.setCreate_by("init");
|
||||
celldto.setCreate_time(SecurityUtils.getCurrentUsername());
|
||||
celldto.setCreate_time(DateUtil.now());
|
||||
wo.insert((JSONObject) JSONObject.toJSON(celldto));
|
||||
}
|
||||
}
|
||||
@@ -892,7 +892,7 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial
|
||||
celldto.setZ("0");
|
||||
celldto.setAddress(0);
|
||||
celldto.setCreate_by("init");
|
||||
celldto.setCreate_time(SecurityUtils.getCurrentUsername());
|
||||
celldto.setCreate_time(DateUtil.now());
|
||||
wo.insert((JSONObject) JSONObject.toJSON(celldto));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user