diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/agv/server/AgvWaitUtil.java b/acs/nladmin-system/src/main/java/org/nl/acs/agv/server/AgvWaitUtil.java index 97374f3..974f2e7 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/agv/server/AgvWaitUtil.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/agv/server/AgvWaitUtil.java @@ -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放货。"; diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device/device_driver/DriverTypeEnum.java b/acs/nladmin-system/src/main/java/org/nl/acs/device/device_driver/DriverTypeEnum.java index 26695a5..24663ad 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/device/device_driver/DriverTypeEnum.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/device/device_driver/DriverTypeEnum.java @@ -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; //驱动编码 diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device/service/impl/DeviceServiceImpl.java b/acs/nladmin-system/src/main/java/org/nl/acs/device/service/impl/DeviceServiceImpl.java index cf530e2..fa9be1f 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/device/service/impl/DeviceServiceImpl.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/device/service/impl/DeviceServiceImpl.java @@ -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)); } } diff --git a/acs/nladmin-ui/src/views/acs/device/index.vue b/acs/nladmin-ui/src/views/acs/device/index.vue index 989a8b7..2390625 100644 --- a/acs/nladmin-ui/src/views/acs/device/index.vue +++ b/acs/nladmin-ui/src/views/acs/device/index.vue @@ -24,7 +24,7 @@ style="width: 190px" @change="crud.toQuery" > - + - + - + - + 导出模型 + >导出模型 + - + - + - + @@ -111,10 +112,14 @@ - + @@ -131,7 +136,7 @@ - + @@ -140,7 +145,7 @@ - +