fix: 霸王餐不送券

This commit is contained in:
张松
2024-11-23 16:00:09 +08:00
parent b8d5195622
commit b76f1f5620

View File

@@ -1743,11 +1743,12 @@ public class PayService {
checkFreeDineForMemberInCallBack(memberIn, payType, payOrderNO);
//会员活动
BigDecimal awardAmount = giveActivate(tbShopUser, memberIn.getAmount(), flow.getId());
BigDecimal awardAmount = null;
//充值送积分
TbActivate activate = tbActivateMapper.selectByAmountScope(tbShopUser.getShopId(), memberIn.getAmount());
if (memberIn.getOrderId() == null && ObjectUtil.isNotNull(activate)) {
awardAmount = giveActivate(tbShopUser, memberIn.getAmount(), flow.getId());
tbMemberPointsService.addPoints(Convert.toLong(tbShopUser.getId()), activate.getGiftPoints(), StrUtil.format("充值¥{}送{}积分", memberIn.getAmount(), activate.getGiftPoints()), null, memberIn.getOrderNo());
}
JSONObject jsonObject = new JSONObject();