Authored by Lixiaodi

bug修改

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