|
@@ -591,7 +591,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
}
|
|
}
|
|
|
giftCardUserRecord.setToUserId(userId);
|
|
giftCardUserRecord.setToUserId(userId);
|
|
|
int update = giftCardUserRecordMapper.update(null, Wrappers.lambdaUpdate(GiftCardUserRecord.class)
|
|
int update = giftCardUserRecordMapper.update(null, Wrappers.lambdaUpdate(GiftCardUserRecord.class)
|
|
|
- .set(giftCardUserRecord.getGcType() == 2, GiftCardUserRecord::getIsUsed, true)
|
|
|
|
|
|
|
+ .set(giftCardUserRecord.getGcType() != 1, GiftCardUserRecord::getIsUsed, true)
|
|
|
.set(GiftCardUserRecord::getToUserId, userId)
|
|
.set(GiftCardUserRecord::getToUserId, userId)
|
|
|
.set(GiftCardUserRecord::getIsSend, true)
|
|
.set(GiftCardUserRecord::getIsSend, true)
|
|
|
.set(GiftCardUserRecord::getReceivedTime, DateTime.now())
|
|
.set(GiftCardUserRecord::getReceivedTime, DateTime.now())
|
|
@@ -601,7 +601,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
if (update > 0) {
|
|
if (update > 0) {
|
|
|
//虚拟卡
|
|
//虚拟卡
|
|
|
//直接发送 对应规格车票
|
|
//直接发送 对应规格车票
|
|
|
- if (giftCardUserRecord.getGcType() == 2) {
|
|
|
|
|
|
|
+ if (giftCardUserRecord.getGcType() != 1) {
|
|
|
Long gcSkuId = giftCardUserRecord.getGcSkuId();
|
|
Long gcSkuId = giftCardUserRecord.getGcSkuId();
|
|
|
log.info("用户userId:{}领取礼品卡id:{},开始发放虚拟车票skuId:{}", userId, giftCardUserRecord.getId(), gcSkuId);
|
|
log.info("用户userId:{}领取礼品卡id:{},开始发放虚拟车票skuId:{}", userId, giftCardUserRecord.getId(), gcSkuId);
|
|
|
GoodsDonSku sku = goodsDonSkuMapper.selectById(gcSkuId);
|
|
GoodsDonSku sku = goodsDonSkuMapper.selectById(gcSkuId);
|