|
@ -338,7 +338,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
Boolean is_flag = false; |
|
|
Boolean is_flag = false; |
|
|
|
|
|
|
|
|
OrderDto orderDto = orders.getList().get(i); |
|
|
OrderDto orderDto = orders.getList().get(i); |
|
|
String produce_code = orderDto.getProduct_code(); |
|
|
String order_code = orderDto.getWorkorder_code(); |
|
|
String device_code = orderDto.getDevice_code(); |
|
|
String device_code = orderDto.getDevice_code(); |
|
|
String material_code = orderDto.getMaterial_code(); |
|
|
String material_code = orderDto.getMaterial_code(); |
|
|
String qty = orderDto.getPlan_qty(); |
|
|
String qty = orderDto.getPlan_qty(); |
|
@ -360,9 +360,9 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
String detection_error = orderDto.getDetection_error(); |
|
|
String detection_error = orderDto.getDetection_error(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (StrUtil.isEmpty(produce_code)) { |
|
|
if (StrUtil.isEmpty(order_code)) { |
|
|
JSONObject json = new JSONObject(); |
|
|
JSONObject json = new JSONObject(); |
|
|
json.put("produce_code", produce_code); |
|
|
json.put("order_code", order_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("message","工单编码不能为空"); |
|
|
json.put("message","工单编码不能为空"); |
|
|
errArr.add(json); |
|
|
errArr.add(json); |
|
@ -372,7 +372,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
Device device = DeviceAppService.findDeviceByCode(device_code); |
|
|
Device device = DeviceAppService.findDeviceByCode(device_code); |
|
|
if (ObjectUtil.isEmpty(device)) { |
|
|
if (ObjectUtil.isEmpty(device)) { |
|
|
JSONObject json = new JSONObject(); |
|
|
JSONObject json = new JSONObject(); |
|
|
json.put("produce_code", produce_code); |
|
|
json.put("order_code", order_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("message","未找到对应设备"); |
|
|
json.put("message","未找到对应设备"); |
|
|
errArr.add(json); |
|
|
errArr.add(json); |
|
@ -387,7 +387,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
lnshMixingMillDeviceDriver = (LnshMixingMillDeviceDriver) device.getDeviceDriver(); |
|
|
lnshMixingMillDeviceDriver = (LnshMixingMillDeviceDriver) device.getDeviceDriver(); |
|
|
if (lnshMixingMillDeviceDriver.getMode() == 0) { |
|
|
if (lnshMixingMillDeviceDriver.getMode() == 0) { |
|
|
JSONObject json = new JSONObject(); |
|
|
JSONObject json = new JSONObject(); |
|
|
json.put("produce_code", produce_code); |
|
|
json.put("order_code", order_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("message","设备未联机"); |
|
|
json.put("message","设备未联机"); |
|
|
errArr.add(json); |
|
|
errArr.add(json); |
|
@ -395,7 +395,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
} |
|
|
} |
|
|
if (StrUtil.isEmpty(qty)) { |
|
|
if (StrUtil.isEmpty(qty)) { |
|
|
JSONObject json = new JSONObject(); |
|
|
JSONObject json = new JSONObject(); |
|
|
json.put("produce_code", produce_code); |
|
|
json.put("order_code", order_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("message","重量不能为空"); |
|
|
json.put("message","重量不能为空"); |
|
|
errArr.add(json); |
|
|
errArr.add(json); |
|
@ -403,13 +403,13 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
} |
|
|
} |
|
|
if (StrUtil.isEmpty(material_code)) { |
|
|
if (StrUtil.isEmpty(material_code)) { |
|
|
JSONObject json = new JSONObject(); |
|
|
JSONObject json = new JSONObject(); |
|
|
json.put("produce_code", produce_code); |
|
|
json.put("order_code", order_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("message","物料编号不能为空"); |
|
|
json.put("message","物料编号不能为空"); |
|
|
errArr.add(json); |
|
|
errArr.add(json); |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
lnshMixingMillDeviceDriver.writing("to_order_No", produce_code); |
|
|
lnshMixingMillDeviceDriver.writing("to_order_No", order_code); |
|
|
lnshMixingMillDeviceDriver.writing("to_weight", qty); |
|
|
lnshMixingMillDeviceDriver.writing("to_weight", qty); |
|
|
lnshMixingMillDeviceDriver.writing("to_material_code", material_code); |
|
|
lnshMixingMillDeviceDriver.writing("to_material_code", material_code); |
|
|
lnshMixingMillDeviceDriver.writing(100); |
|
|
lnshMixingMillDeviceDriver.writing(100); |
|
@ -419,7 +419,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
lnshPressDeviceDriver = (LnshPressDeviceDriver) device.getDeviceDriver(); |
|
|
lnshPressDeviceDriver = (LnshPressDeviceDriver) device.getDeviceDriver(); |
|
|
if (lnshPressDeviceDriver.getMode() == 0) { |
|
|
if (lnshPressDeviceDriver.getMode() == 0) { |
|
|
JSONObject json = new JSONObject(); |
|
|
JSONObject json = new JSONObject(); |
|
|
json.put("produce_code", produce_code); |
|
|
json.put("order_code", order_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("message","设备未联机"); |
|
|
json.put("message","设备未联机"); |
|
|
errArr.add(json); |
|
|
errArr.add(json); |
|
@ -427,7 +427,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
} |
|
|
} |
|
|
if (StrUtil.isEmpty(qty)) { |
|
|
if (StrUtil.isEmpty(qty)) { |
|
|
JSONObject json = new JSONObject(); |
|
|
JSONObject json = new JSONObject(); |
|
|
json.put("produce_code", produce_code); |
|
|
json.put("order_code", order_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("message","重量不能为空"); |
|
|
json.put("message","重量不能为空"); |
|
|
errArr.add(json); |
|
|
errArr.add(json); |
|
@ -435,13 +435,13 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
} |
|
|
} |
|
|
if (StrUtil.isEmpty(material_code)) { |
|
|
if (StrUtil.isEmpty(material_code)) { |
|
|
JSONObject json = new JSONObject(); |
|
|
JSONObject json = new JSONObject(); |
|
|
json.put("produce_code", produce_code); |
|
|
json.put("order_code", order_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("message","物料编号不能为空"); |
|
|
json.put("message","物料编号不能为空"); |
|
|
errArr.add(json); |
|
|
errArr.add(json); |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
lnshPressDeviceDriver.writing("to_order_No", produce_code); |
|
|
lnshPressDeviceDriver.writing("to_order_No", order_code); |
|
|
lnshPressDeviceDriver.writing("to_qty", qty); |
|
|
lnshPressDeviceDriver.writing("to_qty", qty); |
|
|
lnshPressDeviceDriver.writing("to_material_code", material_code); |
|
|
lnshPressDeviceDriver.writing("to_material_code", material_code); |
|
|
lnshPressDeviceDriver.writing("to_product_code", product_code); |
|
|
lnshPressDeviceDriver.writing("to_product_code", product_code); |
|
@ -467,7 +467,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
lnshPackagePalletManipulatorDeviceDriver = (LnshPackagePalletManipulatorDeviceDriver) device.getDeviceDriver(); |
|
|
lnshPackagePalletManipulatorDeviceDriver = (LnshPackagePalletManipulatorDeviceDriver) device.getDeviceDriver(); |
|
|
if (lnshPackagePalletManipulatorDeviceDriver.getMode() == 0) { |
|
|
if (lnshPackagePalletManipulatorDeviceDriver.getMode() == 0) { |
|
|
JSONObject json = new JSONObject(); |
|
|
JSONObject json = new JSONObject(); |
|
|
json.put("produce_code", produce_code); |
|
|
json.put("order_code", order_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("message","设备未联机"); |
|
|
json.put("message","设备未联机"); |
|
|
errArr.add(json); |
|
|
errArr.add(json); |
|
@ -475,7 +475,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
} |
|
|
} |
|
|
if (StrUtil.isEmpty(qty)) { |
|
|
if (StrUtil.isEmpty(qty)) { |
|
|
JSONObject json = new JSONObject(); |
|
|
JSONObject json = new JSONObject(); |
|
|
json.put("produce_code", produce_code); |
|
|
json.put("order_code", order_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("message","重量不能为空"); |
|
|
json.put("message","重量不能为空"); |
|
|
errArr.add(json); |
|
|
errArr.add(json); |
|
@ -483,13 +483,13 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
} |
|
|
} |
|
|
if (StrUtil.isEmpty(material_code)) { |
|
|
if (StrUtil.isEmpty(material_code)) { |
|
|
JSONObject json = new JSONObject(); |
|
|
JSONObject json = new JSONObject(); |
|
|
json.put("produce_code", produce_code); |
|
|
json.put("order_code", order_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("message","物料编号不能为空"); |
|
|
json.put("message","物料编号不能为空"); |
|
|
errArr.add(json); |
|
|
errArr.add(json); |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
lnshPackagePalletManipulatorDeviceDriver.writing("to_order_No", produce_code); |
|
|
lnshPackagePalletManipulatorDeviceDriver.writing("to_order_No", order_code); |
|
|
lnshPackagePalletManipulatorDeviceDriver.writing("to_material", material_code); |
|
|
lnshPackagePalletManipulatorDeviceDriver.writing("to_material", material_code); |
|
|
lnshPackagePalletManipulatorDeviceDriver.writing("to_product_code", product_code); |
|
|
lnshPackagePalletManipulatorDeviceDriver.writing("to_product_code", product_code); |
|
|
lnshPackagePalletManipulatorDeviceDriver.writing("to_AlongSide", AlongSide); |
|
|
lnshPackagePalletManipulatorDeviceDriver.writing("to_AlongSide", AlongSide); |
|
@ -503,7 +503,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
lnshSplitManipulatorDeviceDriver = (LnshSplitManipulatorDeviceDriver) device.getDeviceDriver(); |
|
|
lnshSplitManipulatorDeviceDriver = (LnshSplitManipulatorDeviceDriver) device.getDeviceDriver(); |
|
|
if (lnshSplitManipulatorDeviceDriver.getMode() == 0) { |
|
|
if (lnshSplitManipulatorDeviceDriver.getMode() == 0) { |
|
|
JSONObject json = new JSONObject(); |
|
|
JSONObject json = new JSONObject(); |
|
|
json.put("produce_code", produce_code); |
|
|
json.put("order_code", order_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("message","设备未联机"); |
|
|
json.put("message","设备未联机"); |
|
|
errArr.add(json); |
|
|
errArr.add(json); |
|
@ -511,7 +511,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
} |
|
|
} |
|
|
if (StrUtil.isEmpty(qty)) { |
|
|
if (StrUtil.isEmpty(qty)) { |
|
|
JSONObject json = new JSONObject(); |
|
|
JSONObject json = new JSONObject(); |
|
|
json.put("produce_code", produce_code); |
|
|
json.put("order_code", order_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("message","重量不能为空"); |
|
|
json.put("message","重量不能为空"); |
|
|
errArr.add(json); |
|
|
errArr.add(json); |
|
@ -519,13 +519,13 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
} |
|
|
} |
|
|
if (StrUtil.isEmpty(material_code)) { |
|
|
if (StrUtil.isEmpty(material_code)) { |
|
|
JSONObject json = new JSONObject(); |
|
|
JSONObject json = new JSONObject(); |
|
|
json.put("produce_code", produce_code); |
|
|
json.put("order_code", order_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("devicie_code", device_code); |
|
|
json.put("message","物料编号不能为空"); |
|
|
json.put("message","物料编号不能为空"); |
|
|
errArr.add(json); |
|
|
errArr.add(json); |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
lnshSplitManipulatorDeviceDriver.writing("to_order_No", produce_code); |
|
|
lnshSplitManipulatorDeviceDriver.writing("to_order_No", order_code); |
|
|
lnshSplitManipulatorDeviceDriver.writing("to_material_qty", qty); |
|
|
lnshSplitManipulatorDeviceDriver.writing("to_material_qty", qty); |
|
|
lnshSplitManipulatorDeviceDriver.writing("to_material_code", material_code); |
|
|
lnshSplitManipulatorDeviceDriver.writing("to_material_code", material_code); |
|
|
lnshSplitManipulatorDeviceDriver.writing("to_product_code", product_code); |
|
|
lnshSplitManipulatorDeviceDriver.writing("to_product_code", product_code); |
|
|