This commit is contained in:
张江玮
2023-03-28 20:55:10 +08:00
parent 83e0f0b80c
commit 129e1a510f
3 changed files with 7 additions and 2 deletions

View File

@@ -130,7 +130,6 @@ public class LnshLaminatingMachineDeviceDriver extends AbstractOpcDeviceDriver i
if (mode != last_mode) {
this.setRequireSucess(false);
this.setResult(false);
logServer.deviceItemValue(this.device_code,"mode" ,String.valueOf(mode));
logServer.deviceExecuteLog(this.device_code,"","","信号mode" + last_mode + "->" + mode);
}

View File

@@ -861,7 +861,13 @@ public class WmsToJnServiceImpl implements WmsToJnService {
}
String method = "/TrayBak";
String vehicle_code = (String) whereJson.get("vehicle_code");
if (StrUtil.isBlank(vehicle_code) || "0".equals(vehicle_code) || "0000".equals(vehicle_code) || "999".equals(vehicle_code)) {
return null;
}
JSONObject jsonObject = WQL.getWO("WMSTOJN_001").addParam("flag", "15").addParam("vehicle_code", vehicle_code).process().uniqueResult(0);
if (ObjectUtil.isEmpty(jsonObject)) {
return null;
}
jsonObject.put("outdate",DateUtil.now());
JSONObject obj = new JSONObject();
obj.put("ticker", "WLXT");

View File

@@ -82,7 +82,7 @@ public class SendEmptyVehicleTask extends AbstractAcsTask {
JSONObject startPointObj = pointTab.query("point_code='" + jsonTask.getString("start_point_code") + "'").uniqueResult(0);
//调用mes接口
HashMap hashMap = new HashMap();
hashMap.put("vehicle_code",startPointObj.getString("vehicle_code"));
hashMap.put("vehicle_code", startPointObj.getString("vehicle_code"));
WmsToJnServiceImpl wmsToJnServiceImpl = new WmsToJnServiceImpl();
wmsToJnServiceImpl.feedBackTrayBak(hashMap);