mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
修正
This commit is contained in:
parent
791084b737
commit
6c50675938
|
@ -18,7 +18,7 @@ public interface LacertaVcs {
|
|||
|
||||
public void generateRevisionAtCurrent(String message);
|
||||
|
||||
public CompletableFuture<ArrayList<VcsRevModel>> getRevisionHistoryByDocumentId(String documentId);
|
||||
public CompletableFuture<ArrayList<VcsRevModel>> getRevisionHistory();
|
||||
|
||||
|
||||
// debug
|
||||
|
|
|
@ -125,12 +125,12 @@ public class LacertaVcsImpl implements LacertaVcs {
|
|||
}
|
||||
|
||||
@Override
|
||||
public CompletableFuture<ArrayList<VcsRevModel>> getRevisionHistoryByDocumentId(String documentId) {
|
||||
public CompletableFuture<ArrayList<VcsRevModel>> getRevisionHistory() {
|
||||
return CompletableFuture.supplyAsync(() -> {
|
||||
logger.debug(TAG, "getRevisionHistoryByDocumentId");
|
||||
ArrayList<VcsRevModel> vcsRevModels = new ArrayList<>();
|
||||
|
||||
List<VcsRevEntity> vcsRevEntities = database.vcsRevDao().findByDocumentId(documentId);
|
||||
List<VcsRevEntity> vcsRevEntities = database.vcsRevDao().findByDocumentId(this.documentId);
|
||||
vcsRevEntities.forEach(vcsRevEntity -> {
|
||||
VcsRevModel vcsRevModel = new VcsRevModel();
|
||||
vcsRevModel.setDocumentId(vcsRevEntity.documentId);
|
||||
|
|
Loading…
Reference in New Issue
Block a user