fix:载具托盘解绑、退货入库回传
This commit is contained in:
@@ -129,10 +129,10 @@ public class StoragevehicleinfoServiceImpl implements StoragevehicleinfoService
|
||||
code = "VEHICLE_CODE_GXTP";
|
||||
break;
|
||||
case "0003":
|
||||
if (class_jo.getString("class_code").equals("000301")){
|
||||
if (class_jo.getString("class_code").equals("000301")) {
|
||||
code = "VEHICLE_CODE_LK";
|
||||
}
|
||||
if (class_jo.getString("class_code").equals("000302")){
|
||||
if (class_jo.getString("class_code").equals("000302")) {
|
||||
code = "VEHICLE_CODE_LKB";
|
||||
}
|
||||
break;
|
||||
@@ -179,7 +179,7 @@ public class StoragevehicleinfoServiceImpl implements StoragevehicleinfoService
|
||||
String qty = dto.getString("qty");
|
||||
String pcsn = dto.getString("pcsn");
|
||||
if (StrUtil.isNotEmpty(qty) || StrUtil.isNotEmpty(pcsn)) {
|
||||
JSONObject ext_jo = veExtTab.query("storagevehicle_code = '"+dto.getString("storagevehicle_code")+"'").uniqueResult(0);
|
||||
JSONObject ext_jo = veExtTab.query("storagevehicle_code = '" + dto.getString("storagevehicle_code") + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(ext_jo)) {
|
||||
//新增一条记录
|
||||
JSONObject jsonVeExt = new JSONObject();
|
||||
@@ -197,9 +197,7 @@ public class StoragevehicleinfoServiceImpl implements StoragevehicleinfoService
|
||||
jsonVeExt.put("update_time", DateUtil.now());
|
||||
veExtTab.insert(jsonVeExt);
|
||||
} else {
|
||||
if (StrUtil.isNotEmpty(pcsn)) {
|
||||
ext_jo.put("pcsn", pcsn);
|
||||
}
|
||||
ext_jo.put("pcsn", pcsn);
|
||||
if (StrUtil.isNotEmpty(qty)) {
|
||||
ext_jo.put("qty", qty);
|
||||
}
|
||||
|
||||
@@ -1131,7 +1131,7 @@ public class InAndOutRetrunServiceImpl implements InAndOutReturnService {
|
||||
}
|
||||
|
||||
//退货入库
|
||||
if (StrUtil.equals(bill_type, "0002")) {
|
||||
if (StrUtil.equals(bill_type, "0002") || StrUtil.equals(bill_type, "0013") || StrUtil.equals(bill_type, "0014")) {
|
||||
// 1.回传sap
|
||||
JSONArray paramSapMstArr = new JSONArray();
|
||||
|
||||
@@ -1162,10 +1162,11 @@ public class InAndOutRetrunServiceImpl implements InAndOutReturnService {
|
||||
JSONObject jsonSect = sectTab.query("sect_id = '" + json2.getString("sect_id") + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isNotEmpty(jsonSect)) {
|
||||
// jsonDtl.put("LGORT", jsonSect.getString("ext_id")); // 明細储存地点
|
||||
jsonDtl.put("LGORT", jo_mst.getString("remark")); // 明細储存地点
|
||||
//jsonDtl.put("LGORT", jo_mst.getString("remark")); // 明細储存地点
|
||||
jsonDtl.put("LGORT", lgort);
|
||||
}
|
||||
|
||||
JSONObject jsonSub = subTab.query("container_name = '" + json2.getString("pcsn") + "' AND package_box_sn = '" + json2.getString("box_no") + "' AND bill_id = '" + json2.getString("iostorinv_id") + "'").uniqueResult(0);
|
||||
JSONObject jsonSub = subTab.query("container_name = '" + json2.getString("pcsn") + "' AND package_bo x_sn = '" + json2.getString("box_no") + "' AND bill_id = '" + json2.getString("iostorinv_id") + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isNotEmpty(jsonSect)) {
|
||||
jsonDis.put("CHARG", jsonSub.getString("sap_pcsn")); // sap批次
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user