|
@@ -61,11 +61,10 @@ public class OrderGiftLogServiceImpl extends ServiceImpl<OrderGiftLogMapper, Ord
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void expire(String orderGiftLogId) {
|
|
|
- this.update(Wrappers.<OrderGiftLog>lambdaUpdate().set(OrderGiftLog::getValidFlag, OrderGiftLogVaildFlagEnum.RECEIVE_FAIL.getCode()).eq(OrderGiftLog::getId, orderGiftLogId));
|
|
|
- OrderGiftLog log1 = this.getById(orderGiftLogId);
|
|
|
+ public void expire(String orderGiftId) {
|
|
|
+ this.update(Wrappers.<OrderGiftLog>lambdaUpdate().set(OrderGiftLog::getValidFlag, OrderGiftLogVaildFlagEnum.RECEIVE_FAIL.getCode()).eq(OrderGiftLog::getOrderGiftId, orderGiftId));
|
|
|
//并且更新orderGift表中对应记录的validFlag
|
|
|
- orderGiftMapper.update(null, Wrappers.<OrderGift>lambdaUpdate().set(OrderGift::getValidFlag, OrderGiftVaildFlagEnum.GIFT_ABLE.getCode()).eq(OrderGift::getId, log1.getOrderGiftId()));
|
|
|
+ orderGiftMapper.update(null, Wrappers.<OrderGift>lambdaUpdate().set(OrderGift::getValidFlag, OrderGiftVaildFlagEnum.GIFT_ABLE.getCode()).eq(OrderGift::getId, orderGiftId));
|
|
|
}
|
|
|
//接收会员
|
|
|
@Override
|