This commit is contained in:
USER-20220102CG\noblelift
2022-08-22 10:18:20 +08:00
parent e395d856c7
commit 02b1236ce8

View File

@@ -457,24 +457,23 @@ public class MagicAgvServiceImpl implements MagicAgvService {
lnshStationDeviceDriver.setFlag(3);
is_feedback = true;
}
}
}
if (addressdevice.getDeviceDriver() instanceof SpecialOrdinarySiteDeviceDriver) {
specialOrdinarySiteDeviceDriver = (SpecialOrdinarySiteDeviceDriver) addressdevice.getDeviceDriver();
//请求取货
if ("Load".equals(action)) {
if (addressdevice.getHas_goods() > 0) {
inst.setExecute_status("1");
is_feedback = true;
}
//请求放货
} else if ("Unload".equals(action)) {
if (addressdevice.getHas_goods() == 0) {
inst.setExecute_status("3");
is_feedback = true;
} else if ("NOP".equals(action)) {
//调用LMS接口
if(StrUtil.isNotEmpty(lnshStationDeviceDriver.getBarcode())){
JSONObject json = new JSONObject();
json.put("device_code",address);
json.put("type","5");
json.put("vehicle_code",lnshStationDeviceDriver.getBarcode());
HttpResponse result = acsToWmsService.inKiln(json);
if (ObjectUtil.isNotEmpty(result)) {
JSONObject jsonObject = JSONObject.parseObject(result.body());
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.get("status").toString(),"200")) {
inst.setExecute_status("3");
is_feedback = true;
}
}
}
}
}
if (addressdevice.getDeviceDriver() instanceof StandardOrdinarySiteDeviceDriver) {
standardOrdinarySiteDeviceDriver = (StandardOrdinarySiteDeviceDriver) addressdevice.getDeviceDriver();