Kaynağa Gözat

同步excel奈飞账号状态

zoujiajian 1 yıl önce
ebeveyn
işleme
9a6535fc73

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

@@ -1100,6 +1100,15 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 			String taskId = groupsRelationNetflixService.createNetflixAccountStatusTask(account, password);
 			log.info("任务taskId:{}", taskId);
 			AccountNetflixState accountNetflixState = new AccountNetflixState();
+			Account dbAccount = accountMapper.selectOne(Wrappers.lambdaQuery(Account.class)
+					.eq(Account::getAccount, account)
+					.eq(Account::getGoodsId, 1)
+					.last("limit 1"));
+			if (dbAccount == null) {
+				log.info("账号:{}不存在", account);
+				return;
+			}
+			password = dbAccount.getPassword();
 			accountNetflixState.setAccount(account);
 			accountNetflixState.setPassword(password);
 			accountNetflixState.setState(0);