退货流程 出库异常流程 平库盘点流程

This commit is contained in:
liuhanqing
2025-06-25 17:57:31 +08:00
parent d30b9dd0fc
commit f3cdc90443
12 changed files with 881 additions and 75 deletions

View File

@@ -161,10 +161,12 @@ public class OutStockoutServiceImpl implements IOutStockoutService
outStockoutDetail.setStockoutId(stockoutId);
List<OutStockoutDetail> outStockoutDetails = outStockoutDetailService.selectOutStockoutDetailList(outStockoutDetail);
for (OutStockoutDetail detail : outStockoutDetails) {
map.put("v_stockout_detail_id", detail.getStockoutDetailId());
outStockoutMapper.autoAllot(map);
if (!"10".equals(map.get("v_result"))){
stringBuilder.append(",").append(map.get("v_resultString"));
if (detail.getAllotQuantity().compareTo(detail.getQuantity()) < 0){
map.put("v_stockout_detail_id", detail.getStockoutDetailId());
outStockoutMapper.autoAllot(map);
if (!"10".equals(map.get("v_result"))){
stringBuilder.append(",").append(map.get("v_resultString"));
}
}
}
if (stringBuilder.length()>0){