From 0d03a228281b2b92a47630eaf3740da8d66e14ad Mon Sep 17 00:00:00 2001 From: zhouz <> Date: Fri, 19 Sep 2025 17:10:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=85=A5=E5=BA=93=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=9B=AE=E7=9A=84=E7=82=B9=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E6=97=B6=E5=B8=A6=E4=B8=8A=E5=BA=93=E5=8C=BA=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nl/wms/st/inbill/service/impl/InbillServiceImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/st/inbill/service/impl/InbillServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/wms/st/inbill/service/impl/InbillServiceImpl.java index 2bc574b26..f464c5590 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/st/inbill/service/impl/InbillServiceImpl.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/st/inbill/service/impl/InbillServiceImpl.java @@ -37,6 +37,7 @@ public class InbillServiceImpl { WQLObject point_table = WQLObject.getWQLObject("SCH_BASE_Point"); WQLObject struct_table = WQLObject.getWQLObject("ST_IVT_StructAttr"); String end_point = form.getString("end_point"); + String sect_code = form.getString("sect_code"); HashMap map = new HashMap<>(); //operate:0生成、1完成、2单据确认 switch (operate) { @@ -74,7 +75,11 @@ public class InbillServiceImpl { struct_map.put("inv_type", ""); struct_map.put("inv_id", ""); struct_map.put("inv_code", ""); - struct_table.update(struct_map, "struct_code = '" + end_point + "'"); + if (StrUtil.isNotEmpty(sect_code)) { + struct_table.update(struct_map, "struct_code = '" + end_point + "' AND sect_code = '" + sect_code + "'"); + }else { + struct_table.update(struct_map, "struct_code = '" + end_point + "'"); + } break; default: break; @@ -163,6 +168,7 @@ public class InbillServiceImpl { JSONObject dis_row = dis_rows.getJSONObject(i); JSONObject point_form = new JSONObject(); point_form.put("end_point", dis_row.getString("struct_code")); + point_form.put("sect_code", dis_row.getString("sect_code")); point_form.put("vehicle_code", dis_row.getString("box_no")); //更新目的点位 this.operatePoint("2", point_form);