|
@@ -547,8 +547,9 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
throw BusinessRuntimeException.getInstance("该礼品卡对应的虚拟卡不存在,请联系客服");
|
|
throw BusinessRuntimeException.getInstance("该礼品卡对应的虚拟卡不存在,请联系客服");
|
|
|
}
|
|
}
|
|
|
GroupsRelation relationNoOrder = exchangeCodeService.getRelationNoOrder(sku, userId);
|
|
GroupsRelation relationNoOrder = exchangeCodeService.getRelationNoOrder(sku, userId);
|
|
|
- giftCardUserRecord.setRelationId(relationNoOrder.getId());
|
|
|
|
|
- giftCardUserRecordMapper.updateById(giftCardUserRecord);
|
|
|
|
|
|
|
+ giftCardUserRecordMapper.update(null, Wrappers.lambdaUpdate(GiftCardUserRecord.class)
|
|
|
|
|
+ .set(GiftCardUserRecord::getRelationId, relationNoOrder.getId())
|
|
|
|
|
+ .eq(GiftCardUserRecord::getId, giftCardUserRecord.getId()));
|
|
|
log.info("发送至用户userId:{}礼品卡虚拟车票结束", userId);
|
|
log.info("发送至用户userId:{}礼品卡虚拟车票结束", userId);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|