zoujiajian 1 tahun lalu
induk
melakukan
150cfd27d1

+ 1 - 1
netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

@@ -1051,7 +1051,6 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 		}
 		accounts.forEach(account -> {
 			try {
-				String taskId = groupsRelationNetflixService.createNetflixAccountStatusTask(account);
 				AccountNetflixState exist = accountNetflixStateMapper.selectOne(Wrappers.lambdaQuery(AccountNetflixState.class)
 						.eq(AccountNetflixState::getAccount, account.getAccount())
 						.lt(AccountNetflixState::getCreatedTime, DateUtil.parse("2024-11-11 17:52:00"))
@@ -1059,6 +1058,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 				if (exist != null) {
 					accountNetflixStateMapper.deleteById(exist.getId());
 				}
+				String taskId = groupsRelationNetflixService.createNetflixAccountStatusTask(account);
 				log.info("任务taskId:{}", taskId);
 				AccountNetflixState accountNetflixState = new AccountNetflixState();
 				accountNetflixState.setAccount(account.getAccount());