update:
1. fix
This commit is contained in:
@@ -113,7 +113,7 @@ public class MerchantInventoryServiceImpl extends BaseServiceImpl<MerchantInvent
|
|||||||
throw new IllegalArgumentException("无效数量");
|
throw new IllegalArgumentException("无效数量");
|
||||||
}
|
}
|
||||||
MerchantCatalogEntity catalog = catalogService.getById(productId);
|
MerchantCatalogEntity catalog = catalogService.getById(productId);
|
||||||
if (Objects.isNull(catalog) || catalog.getIsDeleted() == 0) {
|
if (Objects.isNull(catalog)) {
|
||||||
throw new ServiceException("无效商品");
|
throw new ServiceException("无效商品");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -260,7 +260,7 @@ public class MerchantInventoryServiceImpl extends BaseServiceImpl<MerchantInvent
|
|||||||
|
|
||||||
|
|
||||||
MerchantCatalogEntity catalog = catalogService.getById(productId);
|
MerchantCatalogEntity catalog = catalogService.getById(productId);
|
||||||
if (Objects.isNull(catalog) || catalog.getIsDeleted() == 0) {
|
if (Objects.isNull(catalog)) {
|
||||||
throw new ServiceException("无效商品");
|
throw new ServiceException("无效商品");
|
||||||
}
|
}
|
||||||
BigDecimal finalPrice = BigDecimal.ZERO;
|
BigDecimal finalPrice = BigDecimal.ZERO;
|
||||||
|
|||||||
Reference in New Issue
Block a user