规格价格 单规格去除羊角符
This commit is contained in:
parent
e3d2a9d891
commit
6107a37eff
|
|
@ -253,7 +253,7 @@ public class TbProductServiceImpl implements TbProductService {
|
|||
List<TbProductSku> tbProductSkus = tbProductSkuRepository.searchSku(product.getId().toString());
|
||||
if (tbProductSkus.size() > 1) {
|
||||
BigDecimal maxPrice = tbProductSkus.stream().map(TbProductSku::getSalePrice).max(BigDecimal::compareTo).get();
|
||||
productNewVo.setLowPrice(productNewVo.getLowPrice() + "~¥" + maxPrice);
|
||||
productNewVo.setLowPrice("¥" +productNewVo.getLowPrice() + "~¥" + maxPrice);
|
||||
}
|
||||
if(product.getTypeEnum().equals("sku")){
|
||||
//规格填充
|
||||
|
|
|
|||
Loading…
Reference in New Issue