Commit 34c0197bce05c8efd167a346de613027a4e5cb5c
1 parent
3a38a69f
feat(wms):优化整体代码结构
Showing
1 changed file
with
1 additions
and
0 deletions
yudao-module-wms/src/main/java/cn/iocoder/yudao/module/wms/service/inventory/WmsInventoryServiceImpl.java
| ... | ... | @@ -252,6 +252,7 @@ public class WmsInventoryServiceImpl implements WmsInventoryService { |
| 252 | 252 | } catch (DuplicateKeyException ex) { |
| 253 | 253 | throw exception(CHECK_ORDER_INVENTORY_CHANGED); |
| 254 | 254 | } |
| 255 | + // 内存中重置为 0,让主循环按 0 -> checkQuantity 生成盘库流水 | |
| 255 | 256 | inventory.setQuantity(BigDecimal.ZERO); |
| 256 | 257 | return inventory; |
| 257 | 258 | } | ... | ... |