This commit is contained in:
2026-01-29 11:22:28 +08:00
parent 6c41777b7c
commit bac24f9ba1

View File

@@ -82,6 +82,13 @@ public class MkShareBaseServiceImpl extends ServiceImpl<MkShareBaseMapper, MkSha
.eq(MkShopCouponRecord::getSource, "邀请获得"));
grant = !exists;
}
if (grant) {
grant = !mkShopCouponRecordService.exists(query()
.eq(MkShopCouponRecord::getShopId, shopId)
.eq(MkShopCouponRecord::getShopUserId, fromUserId)
.eq(MkShopCouponRecord::getSourceFlowId, toUserId)
.eq(MkShopCouponRecord::getSource, "邀请获得"));
}
if (grant) {
MkShopCouponGiftDTO giftDTO = new MkShopCouponGiftDTO();
giftDTO.setShopId(shopId)