去重
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user