|
@@ -185,13 +185,15 @@ public class RegisterOrderDonServiceImpl extends ServiceImpl<RegisterOrderDonMap
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public CouponUserView spotifyUnLimit(SpotifyUnLimitRecord spotifyUnLimitRecord) {
|
|
public CouponUserView spotifyUnLimit(SpotifyUnLimitRecord spotifyUnLimitRecord) {
|
|
|
- RegisterOrderDon registerOrderDon = this.getOne(Wrappers.lambdaQuery(RegisterOrderDon.class).eq(RegisterOrderDon::getUserId, spotifyUnLimitRecord.getUserId()).eq(RegisterOrderDon::getEmail, spotifyUnLimitRecord.getAccount()).last("limit 1"));
|
|
|
|
|
|
|
+ RegisterOrderDon registerOrderDon = this.getOne(Wrappers.lambdaQuery(RegisterOrderDon.class)
|
|
|
|
|
+ .eq(RegisterOrderDon::getUserId, spotifyUnLimitRecord.getUserId())
|
|
|
|
|
+ .eq(RegisterOrderDon::getEmail, spotifyUnLimitRecord.getAccount())
|
|
|
|
|
+ .eq(RegisterOrderDon::getPlatform, "spotify")
|
|
|
|
|
+ .eq(RegisterOrderDon::getStatus, RegisterOrderDon.Status.complete)
|
|
|
|
|
+ .last("limit 1"));
|
|
|
if (registerOrderDon == null) {
|
|
if (registerOrderDon == null) {
|
|
|
throw BusinessRuntimeException.getInstance("仅接受银河录像局注册成功的Spotify邮箱");
|
|
throw BusinessRuntimeException.getInstance("仅接受银河录像局注册成功的Spotify邮箱");
|
|
|
}
|
|
}
|
|
|
- if (registerOrderDon.getStatus() != RegisterOrderDon.Status.complete) {
|
|
|
|
|
- throw BusinessRuntimeException.getInstance("您的Spotify账号暂未注册成功");
|
|
|
|
|
- }
|
|
|
|
|
Boolean isFlag = false;
|
|
Boolean isFlag = false;
|
|
|
Long spotifyCouponId = null;
|
|
Long spotifyCouponId = null;
|
|
|
//是否配置了优惠券
|
|
//是否配置了优惠券
|