Authored by Lixiaodi

bug修改

... ... @@ -777,11 +777,14 @@ public class ProductServiceImpl implements ProductService {
ProductLimitSale limitSale = productLimitSaleMapper.selectOneByProductIdAndUid(productId, uid);
if (limitSale != null) {
BigDecimal rate = limitSale.getProfitRate();
if (rate == null || rate.compareTo(BigDecimal.ZERO) < 0
if(rate == null) {
productInfo.setSellerCanPublish(true);
} else if (rate.compareTo(BigDecimal.ZERO) < 0
|| rate.compareTo(new BigDecimal("100")) > 0) {
LOGGER.error("该用户" + uid + ",该商品" + productId + "的rate配置有误:" + rate);
productInfo.setSellerCanPublish(false);
} else {
productInfo.setSellerCanPublish(true);
productInfo.setSellerServiceFeeRate(rate.divide(new BigDecimal("100")));
}
} else {
... ...