|
@@ -835,13 +835,9 @@ public class CmsOrderDonServiceImpl extends ServiceImpl<OrderDonMapper,OrderDon>
|
|
|
giftCardOrderUseRecordService.returnGiftCardCash(orderDon.getId());
|
|
giftCardOrderUseRecordService.returnGiftCardCash(orderDon.getId());
|
|
|
}
|
|
}
|
|
|
//是否是GPT镜像规格
|
|
//是否是GPT镜像规格
|
|
|
- if (orderDon.getGoodsId() == 18) {
|
|
|
|
|
- Integer selectCount = chatgptUserMapper.selectCount(Wrappers.lambdaQuery(ChatgptUser.class)
|
|
|
|
|
|
|
+ if (orderDon.getGoodsId() == 18 && sku.getIsMirror()) {
|
|
|
|
|
+ chatgptUserMapper.delete(Wrappers.lambdaQuery(ChatgptUser.class)
|
|
|
.eq(ChatgptUser::getRelationId, orderDon.getRelationId()));
|
|
.eq(ChatgptUser::getRelationId, orderDon.getRelationId()));
|
|
|
- if (selectCount > 0) {
|
|
|
|
|
- chatgptUserMapper.delete(Wrappers.lambdaQuery(ChatgptUser.class)
|
|
|
|
|
- .eq(ChatgptUser::getRelationId, orderDon.getRelationId()));
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|