|
|
@@ -91,7 +91,7 @@ public class YhShopGoodsController {
|
|
|
.field(YhShopGoodsView.YhShopGoodsSkuView::getGoodsId, goodsId).build());
|
|
|
list.forEach(sku -> {
|
|
|
YhShopGoodsRateView.YhShopGoodsSkuRateView yhShopGoodsSkuRateView = beanSearcher.searchFirst(YhShopGoodsRateView.YhShopGoodsSkuRateView.class, MapUtils.builder().field(YhShopGoodsRateView.YhShopGoodsSkuRateView::getSkuId, sku.getSkuId()).build());
|
|
|
- if (sku.getPrice().compareTo(yhShopGoodsSkuRateView.getMaxPrice()) > 0 || sku.getPrice().compareTo(yhShopGoodsSkuRateView.getMinPrice()) < 0) {
|
|
|
+ if (sku.getShopSkuPrice().compareTo(yhShopGoodsSkuRateView.getMaxPrice()) > 0 || sku.getShopSkuPrice().compareTo(yhShopGoodsSkuRateView.getMinPrice()) < 0) {
|
|
|
throw BusinessRuntimeException.getInstance("价格不能超出区间范围");
|
|
|
}
|
|
|
});
|