Authored by caoyan

建议价9结尾

... ... @@ -160,7 +160,7 @@ public class ChannelSkuCompareServiceImpl implements IChannelSkuCompareService,
//记录变更人信息
channelSkuCompareMapper.updateChangeStatusById(req.getId(), req.getStatus(), new UserHelper().getUserId());
return storageMapper.updateSuggestPriceById(csc.getSku(), suggestLowPrice, suggestHighPrice);
return storageMapper.updateSuggestPriceById(csc.getSku(), changeToNineEnd(suggestLowPrice, 1), changeToNineEnd(suggestHighPrice, 2));
}
... ... @@ -183,7 +183,7 @@ public class ChannelSkuCompareServiceImpl implements IChannelSkuCompareService,
BigDecimal suggestHighPrice = csc.getChannelPrice().multiply(BigDecimal.valueOf(1).add(highRate)).setScale(0, BigDecimal.ROUND_DOWN);
//更新storage表的建议价
storageMapper.updateSuggestPriceById(csc.getSku(), suggestLowPrice, suggestHighPrice);
storageMapper.updateSuggestPriceById(csc.getSku(), changeToNineEnd(suggestLowPrice, 1), changeToNineEnd(suggestHighPrice, 2));
//更新比例
return channelSkuCompareMapper.updateRateById(req.getId(), lowRate, highRate, new UserHelper().getUserId());
... ...