This commit is contained in:
2023-08-24 09:21:48 +08:00

View File

@@ -581,6 +581,7 @@ public class ChangeServiceImpl implements ChangeService {
String pcsn = jo.getString("pcsn");
JSONObject old_sub = WQLObject.getWQLObject("pdm_bi_subpackagerelation").query("container_name = '" + pcsn + "' AND status = '2'").uniqueResult(0);
if (ObjectUtil.isEmpty(old_sub)) throw new BadRequestException("子卷包装关系不存在或不在库内!");
old_sub.put("change_type_scode", "02");
old_sub.put("change_order_id", jo_mst.getString("changeinv_id"));
old_sub.put("change_order_code", jo_mst.getString("bill_code"));