下发RGV托盘类型更新
This commit is contained in:
@@ -87,7 +87,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
fmjToPackIngTask.createTask((JSONObject) JSON.toJSON(jsonObject));
|
||||
//生成到包装位的任务时,下发托盘类型给RGV
|
||||
String point_id = pointTable.query("point_code ='" + device_code + "'").uniqueResult(0).getString("point_id");
|
||||
String material_id = structivtTable.query("point_id ='" + point_id + "'").uniqueResult(0).getString("material_id");
|
||||
String material_id = structivtTable.query("struct_id ='" + point_id + "'").uniqueResult(0).getString("material_id");
|
||||
JSONObject materiralObj1 = WQLObject.getWQLObject("md_me_material").query("material_id = '" + material_id + "'").uniqueResult(0);
|
||||
//寻找对应的托盘类型
|
||||
String vehicle_type = vehicleService.getVehicleType(materiralObj1.getString("vehicle_type"));
|
||||
|
||||
@@ -139,7 +139,7 @@ public class ProducetaskServiceImpl implements ProducetaskService {
|
||||
//根据物料去找木托盘类型
|
||||
JSONObject materialObj = WQLObject.getWQLObject("md_me_material").query("material_id = '" + material_id + "'").uniqueResult(0);
|
||||
String vehicle_type = materialObj.getString("vehicle_type");
|
||||
if (StrUtil.isEmpty(vehicle_type)) {
|
||||
if (StrUtil.isEmpty(vehicle_type) || StrUtil.equals(vehicle_type,"0")) {
|
||||
throw new RuntimeException("木托盘类型不可为空!");
|
||||
}
|
||||
dto.setVehicle_type(vehicle_type);
|
||||
|
||||
@@ -131,7 +131,7 @@ public class FmjToPackIngTask extends AbstractAcsTask {
|
||||
String next_point_code = "BZSLW";
|
||||
String material_id = ivtObj.getString("material_id");
|
||||
String is_full = ivtObj.getString("is_full");
|
||||
String qty = ivtObj.getString("qty");
|
||||
String qty = ivtObj.getString("canuse_qty");
|
||||
String pcsn = ivtObj.getString("pcsn");
|
||||
String vehicle_code = ivtObj.getString("vehicle_code");
|
||||
WQLObject taskTable = WQLObject.getWQLObject("SCH_BASE_Task");
|
||||
|
||||
Reference in New Issue
Block a user