| | |
| | | String rootFile = CommonUtil.getRootFile();//主路径 |
| | | for (DefectiveProducts defective:list) { |
| | | String filePath=defective.getFileUrl(); |
| | | defective.setFileUrl("doc_file"+File.separator+filePath); |
| | | if(filePath!=null&&!filePath.isEmpty()){ |
| | | defective.setFileUrl("doc_file"+File.separator+filePath); |
| | | defective.setNameList(FileUtil.getFileNameWithOutDirectory(rootFile+filePath)); |
| | | |
| | | } |
| | | List<DefectiveProductsHistory> hisList=defective.getHisList(); |
| | | if(hisList!=null&&hisList.size()>0){ |
| | | for (DefectiveProductsHistory his:defective.getHisList()) { |
| | | String hisDelPath=his.getDelUrl(); |
| | | his.setDelUrl("doc_file"+File.separator+hisDelPath); |
| | | if(hisDelPath!=null&&!hisDelPath.isEmpty()){ |
| | | his.setDelUrl("doc_file"+File.separator+hisDelPath); |
| | | his.setHisNameList(FileUtil.getFileNameWithOutDirectory(rootFile+hisDelPath)); |
| | | } |
| | | } |