Authored by Lixiaodi

bug修改

... ... @@ -521,7 +521,9 @@ public class ProductServiceImpl implements IProductService, ApplicationContextAw
}
String intro = productIntroService.selectProductIntroById(product.getId());
bo.setProductIntro(intro == null ? "" : intro);
bo.setLimitSaleInfo(CollectionUtil.distinct(productLimitSaleMapper.selectByProductId(product.getId()), limit-> limit.getUid()+" "+limit.getProfitRate()+" "+limit.getPackageFee()+" "+limit.getAppraiseFee()));
bo.setLimitSaleInfo(CollectionUtil.distinct(productLimitSaleMapper.selectByProductId(product.getId()), limit -> {
return limit.getUid() + " " + (limit.getProfitRate() == null ? "" : limit.getProfitRate()) + " " + (limit.getPackageFee() == null ? "" : limit.getPackageFee()) + " " + limit.getAppraiseFee();
}));
bo.setIsSynCalender(product.getIsSynCalender());
bo.setOfferPrice(product.getOfferPrice().compareTo(BigDecimal.valueOf(0.00)) == 0 ? null : String.format("%d", product.getOfferPrice().intValue()));
... ...