whyclxw
2024-07-24 976658d2ed2e743020b398d0761319f8be714541
不良品推送修改
1个文件已修改
5 ■■■■■ 已修改文件
src/main/java/com/whyc/service/DefectiveProductsService.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/DefectiveProductsService.java
@@ -135,16 +135,17 @@
        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));
                    }
                }