|
@@ -3003,6 +3003,16 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
if (!netflixRelationView.getIsRecover() && netflixRelationView.getExpiryTime().before(DateTime.now())) {
|
|
if (!netflixRelationView.getIsRecover() && netflixRelationView.getExpiryTime().before(DateTime.now())) {
|
|
|
throw BusinessRuntimeException.getInstance("奈飞车票已过期");
|
|
throw BusinessRuntimeException.getInstance("奈飞车票已过期");
|
|
|
}
|
|
}
|
|
|
|
|
+ NetflixUserAccountSubmitRecoverRecord recoverRecord = netflixUserAccountSubmitRecoverRecordMapper.selectOne(Wrappers.lambdaQuery(NetflixUserAccountSubmitRecoverRecord.class)
|
|
|
|
|
+ .in(NetflixUserAccountSubmitRecoverRecord::getUserId, userIdList)
|
|
|
|
|
+ .eq(NetflixUserAccountSubmitRecoverRecord::getRelationId, relationId)
|
|
|
|
|
+ .eq(NetflixUserAccountSubmitRecoverRecord::getStatus, 0)
|
|
|
|
|
+ .last("limit 1"));
|
|
|
|
|
+ if (recoverRecord != null) {
|
|
|
|
|
+ //恢复状态
|
|
|
|
|
+ //重新设置车票时长
|
|
|
|
|
+ netflixRelationView.setExpiryTime(DateUtil.offsetDay(DateTime.now(), recoverRecord.getRemainDays().intValue()));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
netflixRelationView.setNfCheckId(netflixUseAccountStatusRecord.getId());
|
|
netflixRelationView.setNfCheckId(netflixUseAccountStatusRecord.getId());
|
|
|
netflixRelationView.setNfOriOrderId(netflixUseAccountStatusRecord.getOrderId());
|
|
netflixRelationView.setNfOriOrderId(netflixUseAccountStatusRecord.getOrderId());
|