优惠券初始值问题
This commit is contained in:
@@ -531,7 +531,6 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
||||
} else {
|
||||
shopUserMoneyEditDTO.setBizEnum(ShopUserFlowBizEnum.CASH_IN);
|
||||
}
|
||||
log.info("充钱1 是否是霸王餐:{}", isFree);
|
||||
if (isFree) {
|
||||
if (StrUtil.isBlank(czgCallBackDto.getExtParam())) {
|
||||
throw new ValidateException("霸王餐支付,订单号处理失败");
|
||||
@@ -543,12 +542,9 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
||||
.set(OrderInfo::getPayAmount, 0)
|
||||
.update();
|
||||
}
|
||||
log.info("充钱:2");
|
||||
//更新会员余额 并生成流水
|
||||
Long flowId = shopUserService.updateMoney(shopUser.getShopId(), shopUserMoneyEditDTO);
|
||||
log.info("充钱3 更新钱:{}", flowId);
|
||||
if (!isFree) {
|
||||
log.info("充钱4 会员充值奖励");
|
||||
//会员活动
|
||||
activateService.giveActivate(shopUser,
|
||||
new BigDecimal(czgCallBackDto.getAmount()).divide(new BigDecimal(100), 2, RoundingMode.DOWN), flowId);
|
||||
|
||||
Reference in New Issue
Block a user