Commit 9988d2fc by 春觉晓

修改商品实付金额计算逻辑

1 parent e990aa38
...@@ -52,12 +52,6 @@ public class PlatformSubOrderGoodsService { ...@@ -52,12 +52,6 @@ public class PlatformSubOrderGoodsService {
if(dto.getPayStatus() != null && dto.getPayStatus().equals(1003)){ if(dto.getPayStatus() != null && dto.getPayStatus().equals(1003)){
dto.setOrderStatus(PlatformOrderStatusEnum.CLOSED.getValue()); dto.setOrderStatus(PlatformOrderStatusEnum.CLOSED.getValue());
} }
//计算订单总积分: 运费 + 商品积分
BigDecimal totalScore = dto.getRedeemPoints() == null ? BigDecimal.ZERO : new BigDecimal(dto.getRedeemPoints().toString());
if (dto.getFreightAmount() != null) {
totalScore = totalScore.add(dto.getFreightAmount());
}
dto.setTotalScore(totalScore);
return dto; return dto;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(list)){ if (CollectionUtils.isNotEmpty(list)){
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!