积分模块相关代码
This commit is contained in:
@@ -142,7 +142,7 @@ public class TbPointsExchangeRecordServiceImpl extends ServiceImpl<TbPointsExcha
|
||||
if (quantity <= 0) {
|
||||
throw new MsgException("兑换的商品库存不足");
|
||||
}
|
||||
TbMemberPoints memberPoints = tbMemberPointsMapper.selectOne(Wrappers.<TbMemberPoints>lambdaQuery().eq(TbMemberPoints::getMobile, record.getMobile()));
|
||||
TbMemberPoints memberPoints = tbMemberPointsMapper.selectOne(Wrappers.<TbMemberPoints>lambdaQuery().eq(TbMemberPoints::getMemberId, record.getMemberId()));
|
||||
if (memberPoints == null) {
|
||||
throw new MsgException("该会员积分不足无法兑换这个商品");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user