whyclxw
2024-07-24 1a8db70fe9c5d9a79ed50ca35a19a247dcddfc6a
不良品推送修改
1个文件已修改
2 ■■■■■ 已修改文件
src/main/java/com/whyc/service/DefectiveProductsService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/DefectiveProductsService.java
@@ -135,6 +135,7 @@
        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.setNameList(FileUtil.getFileNameWithOutDirectory(rootFile+filePath));
            }
@@ -142,6 +143,7 @@
            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.setHisNameList(FileUtil.getFileNameWithOutDirectory(rootFile+hisDelPath));
                    }