Commit 7afc97b72f6b209dd11e0e9e74e743d46cc78152
1 parent
3038726c
fix: 修复取消预配盘时的校验错误
Showing
1 changed file
with
1 additions
and
1 deletions
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerAdvice/service/impl/ShipmentContainerAdviceServiceImpl.java
... | ... | @@ -101,7 +101,7 @@ public class ShipmentContainerAdviceServiceImpl extends ServiceImpl<ShipmentCont |
101 | 101 | public Result cancelCombineAdvice(Integer id) { |
102 | 102 | log.info("开始取消预配盘,id:" + id); |
103 | 103 | ShipmentContainerHeader shipmentContainerHeader = shipmentContainerHeaderService.getById(id); |
104 | - if (shipmentContainerHeader != null) { | |
104 | + if (shipmentContainerHeader == null) { | |
105 | 105 | return Result.error("取消出库预配盘失败, 没有找到出库组盘头ID:" + id); |
106 | 106 | } |
107 | 107 | int status = shipmentContainerHeader.getStatus(); |
... | ... |