|
|
@ -630,7 +630,7 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati
|
|
|
|
for (int i = 0; i < fileKeys.length; i++) {
|
|
|
|
for (int i = 0; i < fileKeys.length; i++) {
|
|
|
|
String fileKey = fileKeys[i];
|
|
|
|
String fileKey = fileKeys[i];
|
|
|
|
List<String> clientFileUrl = clientFiles.stream()
|
|
|
|
List<String> clientFileUrl = clientFiles.stream()
|
|
|
|
.filter(fileJson -> (fileKey.equals(fileJson.getString("file_name")) && (fileJson.getIntValue("status")==0 || fileJson.getIntValue("status")==1)))
|
|
|
|
.filter(fileJson -> (fileKey.equals(fileJson.getString("file_name")) && (fileJson.getIntValue("status")==1 || fileJson.getIntValue("status")==2)))
|
|
|
|
.sorted((log1, log2) -> log2.getDate("last_update_date").compareTo(log1.getDate("last_update_date")))
|
|
|
|
.sorted((log1, log2) -> log2.getDate("last_update_date").compareTo(log1.getDate("last_update_date")))
|
|
|
|
.map(groupBd -> groupBd.getString("file_value"))
|
|
|
|
.map(groupBd -> groupBd.getString("file_value"))
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
.collect(Collectors.toList());
|
|
|
@ -642,7 +642,7 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati
|
|
|
|
resultFile.add(fileJson);
|
|
|
|
resultFile.add(fileJson);
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
List<String> clientBackToFileUrl = clientFiles.stream()
|
|
|
|
List<String> clientBackToFileUrl = clientFiles.stream()
|
|
|
|
.filter(fileJson -> (fileKey.equals(fileJson.getString("file_name")) && (fileJson.getIntValue("status")==2)))
|
|
|
|
.filter(fileJson -> (fileKey.equals(fileJson.getString("file_name")) && (fileJson.getIntValue("status")==0 || fileJson.getIntValue("status")==2)))
|
|
|
|
.sorted((log1, log2) -> log2.getDate("last_update_date").compareTo(log1.getDate("last_update_date")))
|
|
|
|
.sorted((log1, log2) -> log2.getDate("last_update_date").compareTo(log1.getDate("last_update_date")))
|
|
|
|
.map(groupBd -> groupBd.getString("file_value"))
|
|
|
|
.map(groupBd -> groupBd.getString("file_value"))
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
.collect(Collectors.toList());
|
|
|
|