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