PDF星侃导入

sdInAndOutDetailRepotr
HUOJIN\92525 2024-12-30 15:33:24 +08:00
parent ef1aea2bdb
commit a147da04df
1 changed files with 6 additions and 2 deletions

View File

@ -332,10 +332,14 @@ public class DefaultImportFileManager extends DefaultBaseManager implements Impo
temp=true;
}else{
if(info.length>1){
cpdm=info[1];
String [] bb=info;
List<String> listWithEmptyStrings = new ArrayList<>(Arrays.asList(bb));
listWithEmptyStrings.removeIf(String::isEmpty);
String[] resultArray = listWithEmptyStrings.toArray(new String[0]);
cpdm=resultArray[1];
cpdm=cpdm.replaceAll("([\u4E00-\u9FA5]+)|([\u4E00-\u9FA5])","");
System.out.println(cpdm);
line=Integer.parseInt(info[0]);
line=Integer.parseInt(resultArray[0]);
System.out.println(line);
}
// 使用removeIf方法移除所有空字符串