fix:二期PC端入库逻辑修改

This commit is contained in:
zhouz
2026-04-30 16:15:02 +08:00
parent d373a18753
commit 776823c8ce
2 changed files with 9 additions and 7 deletions

View File

@@ -125,8 +125,8 @@ public class StIvtIostorinvdtlServiceImpl extends ServiceImpl<StIvtIostorinvdtlM
.base_bill_code(row.getString("base_bill_code")) .base_bill_code(row.getString("base_bill_code"))
.base_bill_table(row.getString("base_bill_table")) .base_bill_table(row.getString("base_bill_table"))
.remark(row.getString("remark")) .remark(row.getString("remark"))
.assign_qty(BigDecimal.valueOf(0)) .unassign_qty(BigDecimal.valueOf(0))
.unassign_qty(row.getBigDecimal("plan_qty")) .assign_qty(row.getBigDecimal("plan_qty"))
.box_no(row.getString("package_box_sn")) .box_no(row.getString("package_box_sn"))
.vbeln(row.getString("vbeln")) .vbeln(row.getString("vbeln"))
.posnr(row.getString("posnr")) .posnr(row.getString("posnr"))

View File

@@ -1209,8 +1209,9 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
// 更新主表 // 更新主表
JSONObject jsonMst = mstTab.query("iostorinv_id = '" + whereJson.getString("iostorinv_id") + "'").uniqueResult(0); JSONObject jsonMst = mstTab.query("iostorinv_id = '" + whereJson.getString("iostorinv_id") + "'").uniqueResult(0);
jsonMst.put("is_overdue", whereJson.getString("is_overdue")); HashMap<String, String> map = new HashMap<>();
mstTab.update(jsonMst); map.put("is_overdue", whereJson.getString("is_overdue"));
mstTab.update(map, "iostorinv_id = '" + whereJson.getString("iostorinv_id") + "'");
// 计算超期数量 // 计算超期数量
List<JSONObject> disList = disTab.query("iostorinvdtl_id = '" + whereJson.getString("iostorinvdtl_id") + "' AND is_overdue = '1'") List<JSONObject> disList = disTab.query("iostorinvdtl_id = '" + whereJson.getString("iostorinvdtl_id") + "' AND is_overdue = '1'")
@@ -1220,6 +1221,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
.map(row -> row.getDoubleValue("plan_qty")) .map(row -> row.getDoubleValue("plan_qty"))
.reduce(Double::sum).orElse(0.00); .reduce(Double::sum).orElse(0.00);
jsonMst.put("is_overdue", whereJson.getString("is_overdue"));
JSONObject result = new JSONObject(); JSONObject result = new JSONObject();
result.put("overdue_qyt", overdue_qyt); result.put("overdue_qyt", overdue_qyt);
result.put("mst", jsonMst); result.put("mst", jsonMst);