fix:新增退货入库业务
This commit is contained in:
@@ -1868,6 +1868,20 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
// 6-退货入库
|
||||
whereJson.put("bill_type", IOSEnum.IN_TYPE.code("退货入库"));
|
||||
whereJson.put("box_no", whereJson.getString("material_barcode"));
|
||||
JSONArray resultJSONArray = WQLObject.getWQLObject("pdm_bi_subpackagerelation").query("package_box_sn = '" + whereJson.getString("material_barcode") + "' AND status = '0'").getResultJSONArray(0);
|
||||
if (ObjectUtil.isEmpty(resultJSONArray)) {
|
||||
throw new BadRequestException("未查询到子卷包装信息!");
|
||||
}
|
||||
String material_barcode = "";
|
||||
for (int i = 0; i < resultJSONArray.size(); i++) {
|
||||
JSONObject resultObj = resultJSONArray.getJSONObject(i);
|
||||
if (i==0){
|
||||
material_barcode = resultObj.getString("container_name");
|
||||
}else {
|
||||
material_barcode += "," + resultObj.getString("container_name");
|
||||
}
|
||||
}
|
||||
whereJson.put("material_barcode", material_barcode);
|
||||
inBussManageService.inTask(whereJson);
|
||||
}
|
||||
result.put("status", HttpStatus.OK.value());
|
||||
|
||||
Reference in New Issue
Block a user