|
|
@ -153,12 +153,13 @@ public class DmXbjhServiceImpl extends ServiceImpl<DmXbjhMapper, DmXbjh> impleme
|
|
|
|
HashSet<String> names = new HashSet<>();
|
|
|
|
HashSet<String> names = new HashSet<>();
|
|
|
|
for (File file1 : files) {
|
|
|
|
for (File file1 : files) {
|
|
|
|
String name = FileUtil.getPrefix(file1.getName());
|
|
|
|
String name = FileUtil.getPrefix(file1.getName());
|
|
|
|
String[] s = name.split("_");
|
|
|
|
if (name.contains(DateUtil.thisYear()+"")){
|
|
|
|
names.add(s[s.length - 1]);
|
|
|
|
String[] s = name.split("_");
|
|
|
|
|
|
|
|
names.add(s[s.length - 1]);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
names.stream()
|
|
|
|
names.stream()
|
|
|
|
.filter(item -> item.contains(DateUtil.thisYear() + ""))
|
|
|
|
|
|
|
|
.max(String::compareTo)
|
|
|
|
.max(String::compareTo)
|
|
|
|
.ifPresent(item -> {
|
|
|
|
.ifPresent(item -> {
|
|
|
|
String v = item.replace("v", "");
|
|
|
|
String v = item.replace("v", "");
|
|
|
|