| | |
| | | int stationIdMax=mapper.selectMaxId(); |
| | | int fileIdMax=infoMapper.selectMaxId(); |
| | | if(file.exists()){ |
| | | if(!filePath.contains(".xml")){ |
| | | return new Response().set(1,false,"台站下添加文件失败,文件不是指定的xml文件"); |
| | | } |
| | | if(file.isFile()){ |
| | | //2.解析文件并补全文件id |
| | | FileInfo fileInfo=XmlFileOpreate.readXml(filePath); |
| | |
| | | if(allFile!=null&&allFile.size()>0){ |
| | | for (int i=0;i< allFile.size();i++){ |
| | | File file=allFile.get(i); |
| | | if(!file.getName().contains(".xml")){ |
| | | |
| | | } |
| | | //2.解析文件并补全文件id |
| | | FileInfo fileInfo=XmlFileOpreate.readXml(file.getPath()); |
| | | fileInfo.setFileUrl(file.getPath()); |