|
|
@ -52,12 +52,14 @@ public class SyncApi { |
|
|
|
Long id = ids.getLong(i); |
|
|
|
SyncTask syncTask = syncTaskDao.getSyncTaskById(id); |
|
|
|
if (syncTask != null) { |
|
|
|
continue; |
|
|
|
syncTask.setSyncStatus(SyncStatus.wait); |
|
|
|
syncTaskDao.updateSyncTask(syncTask); |
|
|
|
}else{ |
|
|
|
ProfileRecordDescription profileRecordDescription = profileRecordDao.getProfileRecordById(id); |
|
|
|
profileRecordDescription.setSyncStatus(SyncStatus.wait); |
|
|
|
profileRecordDao.updateProfileRecord(profileRecordDescription); |
|
|
|
syncTaskDao.insertSyncTask(profileRecordDescription); |
|
|
|
} |
|
|
|
ProfileRecordDescription profileRecordDescription = profileRecordDao.getProfileRecordById(id); |
|
|
|
profileRecordDescription.setSyncStatus(SyncStatus.wait); |
|
|
|
profileRecordDao.updateProfileRecord(profileRecordDescription); |
|
|
|
syncTaskDao.insertSyncTask(profileRecordDescription); |
|
|
|
SystemService.getInstance().getUploadManager().addUploadId(id); |
|
|
|
} |
|
|
|
return Result.success(); |
|
|
|