| | |
| | | import javax.annotation.Resource; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.text.ParseException; |
| | | import java.util.Date; |
| | | import java.util.LinkedList; |
| | | import java.util.List; |
| | |
| | | String rootFile = CommonUtil.getRootFile();//主路径 |
| | | for (DefectiveProducts defective:list) { |
| | | String filePath=defective.getFileUrl(); |
| | | String startTimeEx=ActionUtil.sdfwithday.format(defective.getStartTime()); |
| | | defective.setStartTimeEx(startTimeEx); |
| | | if(filePath!=null&&!filePath.isEmpty()){ |
| | | defective.setFileUrl("doc_file"+File.separator+filePath); |
| | | defective.setNameList(FileUtil.getFileNameWithOutDirectory(rootFile+filePath)); |