fix组盘信息未同步及点位数据未移动

This commit is contained in:
psh
2023-09-20 22:09:31 +08:00
parent 62e51daaa3
commit 918dd2175d
3 changed files with 46 additions and 1 deletions

View File

@@ -266,6 +266,7 @@ public class NDCSocketConnectionAutoRun extends AbstractAutoRunnable {
//如果是混料区则上送LMS当前点位的字段同步到st_ivt_structivt仓位库存表
JSONObject jsonObject = new JSONObject();
jsonObject.put("device_code", device_code);
jsonObject.put("point_code", device_code);
jsonObject.put("weight", standardInspectSiteSmartDeviceDriver.getWeight());
jsonObject.put("product_code", standardInspectSiteSmartDeviceDriver.getProduct_code());
jsonObject.put("batch_code", standardInspectSiteSmartDeviceDriver.getBatch_code());
@@ -398,6 +399,13 @@ public class NDCSocketConnectionAutoRun extends AbstractAutoRunnable {
//无车id及状态
else if (phase == 0x0A) {
if (!ObjectUtil.isEmpty(inst)) {
JSONObject jsonObject = new JSONObject();
jsonObject.put("point_code", inst.getStart_device_code());
jsonObject.put("device_code", inst.getStart_device_code());
jsonObject.put("start_code", inst.getStart_device_code());
jsonObject.put("next_code", inst.getNext_device_code());
jsonObject.put("type", "10");
acsToWmsService.lnshApplyTaskToWms(jsonObject);
inst.setInstruction_status("2");
instructionService.finish(inst);
}