Merge remote-tracking branch 'origin/dev_WMS20260401' into dev_WMS20260401

This commit is contained in:
王奎兴
2026-06-03 10:47:29 +08:00
@@ -1165,41 +1165,28 @@ public class ReservationStockOutOrderApplicationService {
String warehouse = reservationOutMaterialDetailMapper.getWarehouse(kcId);
String opWhLoc = reservationOutMaterialDetailMapper.getOpWhLoc(kcId);
item.put("orderINo", inOrderNumber != null ? inOrderNumber : "");
item.put("warehouse", warehouse != null ? warehouse : "");
item.put("opWhLoc", opWhLoc != null ? opWhLoc : "");
item.put("billI", inLotNo != null ? inLotNo : "");
// 处理批次号中的数字
if (inLotNo != null && inLotNo.contains("-")) {
String numStr = inLotNo.substring(inLotNo.lastIndexOf("-") + 1);
try {
Integer result = Integer.valueOf(numStr);
item.put("orderIRow", result);
item.put("billIRow", result);
} catch (NumberFormatException e) {
item.put("orderIRow", null);
item.put("billIRow", null);
if (inOrderNumber != null) {
item.put("orderINo", inOrderNumber);
}
if (warehouse != null) {
item.put("warehouse", warehouse);
}
if (opWhLoc != null) {
item.put("opWhLoc", opWhLoc);
}
if (inLotNo != null) {
item.put("billI", inLotNo);
if (inLotNo.contains("-")) {
String numStr = inLotNo.substring(inLotNo.lastIndexOf("-") + 1);
try {
Integer result = Integer.valueOf(numStr);
item.put("orderIRow", result);
item.put("billIRow", result);
} catch (NumberFormatException e) {
}
}
} else {
item.put("orderIRow", null);
item.put("billIRow", null);
}
} else {
item.put("orderINo", "");
item.put("orderIRow", null);
item.put("warehouse", "");
item.put("opWhLoc", "");
item.put("billI", "");
item.put("billIRow", null);
}
} else {
item.put("orderINo", "");
item.put("orderIRow", null);
item.put("warehouse", "");
item.put("opWhLoc", "");
item.put("billI", "");
item.put("billIRow", null);
}
orderList.add(item);