...
|
...
|
@@ -2029,9 +2029,10 @@ public class ProductServiceImpl implements ProductService { |
|
|
}
|
|
|
ProductSort sort = productSortMapper.selectByPrimaryKey(maxSortId);
|
|
|
if (!Objects.isNull(sort)) {
|
|
|
productInfo.setCategoryServiceFeeRate(sort.getServiceFeeRate());
|
|
|
productInfo.setCategoryServiceFeeMinPrice(sort.getServiceFeeMinPrice());
|
|
|
productInfo.setCategoryServiceFeeMaxPrice(sort.getServiceFeeMaxPrice());
|
|
|
BigDecimal rate = new BigDecimal("100");
|
|
|
productInfo.setCategoryServiceFeeRate(sort.getServiceFeeRate() == null ? null : sort.getServiceFeeRate().divide(rate));
|
|
|
productInfo.setCategoryServiceFeeMinPrice(sort.getServiceFeeMinPrice() == null ? null : sort.getServiceFeeMinPrice().divide(rate));
|
|
|
productInfo.setCategoryServiceFeeMaxPrice(sort.getServiceFeeMaxPrice() == null ? null : sort.getServiceFeeMaxPrice().divide(rate));
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|