|
|
@@ -120,10 +120,9 @@ public class SpotifyUserUpgradeOrderServiceImpl implements SpotifyUserUpgradeOrd
|
|
|
}
|
|
|
Long orderId = order.getId();
|
|
|
SpotifyUserUpgradeSubmitRecord upgradeSubmitRecord = Optional.ofNullable(spotifyUserUpgradeSubmitRecordMapper.selectOne(Wrappers.lambdaQuery(SpotifyUserUpgradeSubmitRecord.class)
|
|
|
- .ne(SpotifyUserUpgradeSubmitRecord::getStatus, SpotifyUserUpgradeSubmitRecord.Status.fail)
|
|
|
.eq(SpotifyUserUpgradeSubmitRecord::getOrderId, orderId)
|
|
|
.last("limit 1"))).orElse(new SpotifyUserUpgradeSubmitRecord());
|
|
|
- if (upgradeSubmitRecord != null && upgradeSubmitRecord.getStatus() != SpotifyUserUpgradeSubmitRecord.Status.fail) {
|
|
|
+ if (upgradeSubmitRecord.getStatus() != null && upgradeSubmitRecord.getStatus() != SpotifyUserUpgradeSubmitRecord.Status.fail) {
|
|
|
throw BusinessRuntimeException.getInstance("您已提交记录");
|
|
|
}
|
|
|
try {
|