|
|
@@ -2213,7 +2213,7 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
public GoodsDonSku adjustGoodsDonSku(Long yhsId, Boolean isPayReal, Long skuId) {
|
|
|
GoodsDonSku sku;
|
|
|
isPayReal = Optional.ofNullable(isPayReal).orElse(false);
|
|
|
- if (yhsId != null && !isPayReal) {
|
|
|
+ if (yhsId != 0 && !isPayReal) {
|
|
|
sku = yhShopGoodsSkuMapper.selectGoodsDonSkuBySkuIdAndYhsId(yhsId, skuId);
|
|
|
} else {
|
|
|
sku = goodsDonSkuMapper.selectById(skuId);
|