1. fix
This commit is contained in:
2026-05-23 16:07:02 +08:00
parent 804a0348ab
commit 9e5140045f

View File

@@ -113,7 +113,7 @@ public class MerchantInventoryServiceImpl extends BaseServiceImpl<MerchantInvent
throw new IllegalArgumentException("无效数量");
}
MerchantCatalogEntity catalog = catalogService.getById(productId);
if (Objects.isNull(catalog) || catalog.getIsDeleted() == 0) {
if (Objects.isNull(catalog)) {
throw new ServiceException("无效商品");
}
@@ -260,7 +260,7 @@ public class MerchantInventoryServiceImpl extends BaseServiceImpl<MerchantInvent
MerchantCatalogEntity catalog = catalogService.getById(productId);
if (Objects.isNull(catalog) || catalog.getIsDeleted() == 0) {
if (Objects.isNull(catalog)) {
throw new ServiceException("无效商品");
}
BigDecimal finalPrice = BigDecimal.ZERO;