|
@@ -120,7 +120,7 @@ public class CouponFrontController {
|
|
|
}
|
|
}
|
|
|
return true;
|
|
return true;
|
|
|
}).forEach(data -> {
|
|
}).forEach(data -> {
|
|
|
- CouponUser couponUser = couponUserMapper.selectOne(Wrappers.lambdaQuery(CouponUser.class).eq(CouponUser::getCouponId, data.getCouponId()).select(CouponUser::getId).last("limit 1"));
|
|
|
|
|
|
|
+ CouponUser couponUser = couponUserMapper.selectOne(Wrappers.lambdaQuery(CouponUser.class).eq(CouponUser::getUserId, userId).eq(CouponUser::getCouponId, data.getCouponId()).select(CouponUser::getId).last("limit 1"));
|
|
|
if (couponUser == null) {
|
|
if (couponUser == null) {
|
|
|
//待领取
|
|
//待领取
|
|
|
data.setCouponStatus(CouponActiveView.CouponStatus.collecting);
|
|
data.setCouponStatus(CouponActiveView.CouponStatus.collecting);
|