fix:入库确认更新目的点库存时带上库区条件
This commit is contained in:
@@ -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<String, String> 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);
|
||||
|
||||
Reference in New Issue
Block a user