修改变量名使语义好理解

master
李一帆 2025-08-08 15:28:15 +08:00
parent 60b8484739
commit ca94f9516c
1 changed files with 4 additions and 4 deletions

View File

@ -131,7 +131,7 @@ public class AutoCallTaskScheduled {
//fetch status //fetch status
int pendingDuration = 60 * 1000 * 2; int pendingDuration = 60 * 1000 * 2;
int loopGap = 1000; int loopGap = 1000;
boolean success = false; boolean resultFetched = false;
while (pendingDuration > 0) { while (pendingDuration > 0) {
try { try {
Thread.sleep(loopGap); Thread.sleep(loopGap);
@ -141,12 +141,12 @@ public class AutoCallTaskScheduled {
} }
pendingDuration -= loopGap; pendingDuration -= loopGap;
success = autoCallTaskService.step4QueryAICCTaskResult(person); resultFetched = autoCallTaskService.step4QueryAICCTaskResult(person);
if (success) break; if (resultFetched) break;
} }
AutoCallPerson _person = autoCallTaskService.getPersonMapper().selectById(person.getId()); AutoCallPerson _person = autoCallTaskService.getPersonMapper().selectById(person.getId());
person = _person; person = _person;
if (!success) { if (!resultFetched) {
if (person.getUploadedTimes() == 2) { if (person.getUploadedTimes() == 2) {
autoCallTaskService.markPersonDetailQueryTimeout(person); autoCallTaskService.markPersonDetailQueryTimeout(person);
} }