用户购买一件以上数量时推广者返佣金额计算出错

Signed-off-by: heyho <heywsk@qq.com>
This commit is contained in:
heyho 2024-09-02 05:08:17 +00:00 committed by Gitee
parent ae26ca5d00
commit d1fc18a409
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -261,7 +261,7 @@ public interface TradeOrderConvert {
default BrokerageAddReqBO convert(MemberUserRespDTO user, TradeOrderItemDO item,
ProductSpuRespDTO spu, ProductSkuRespDTO sku) {
BrokerageAddReqBO bo = new BrokerageAddReqBO().setBizId(String.valueOf(item.getId())).setSourceUserId(item.getUserId())
.setBasePrice(item.getPrice() * item.getCount())
.setBasePrice(item.getPayPrice())
.setTitle(StrUtil.format("{}成功购买{}", user.getNickname(), item.getSpuName()))
.setFirstFixedPrice(0).setSecondFixedPrice(0);
if (BooleanUtil.isTrue(spu.getSubCommissionType())) {