소스 검색

优化公章列表查询

qitz 2 년 전
부모
커밋
f38d6997bc
1개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  1. 8
    6
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/DeptIdentifyServiceImpl.java

+ 8
- 6
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/DeptIdentifyServiceImpl.java 파일 보기

@@ -291,12 +291,14 @@ public class DeptIdentifyServiceImpl implements IDeptIdentifyService {
291 291
                 if (annexId != null) {
292 292
                     //根据附件id查询路径
293 293
                     CaseAttach caseAttach = caseAttachMapper.queryAnnexById(annexId);
294
-                    String annexName = caseAttach.getAnnexName();
295
-                    String prefix = "/profile";
296
-                    int startIndex = annexName.indexOf(prefix);
297
-                    startIndex += prefix.length();
298
-                    String annexPath = "/uploadPath" + annexName.substring(startIndex);
299
-                    sealManage1.setAnnexPath(annexPath);
294
+                    if(caseAttach!=null){
295
+                        String annexName = caseAttach.getAnnexName();
296
+                        String prefix = "/profile";
297
+                        int startIndex = annexName.indexOf(prefix);
298
+                        startIndex += prefix.length();
299
+                        String annexPath = "/uploadPath" + annexName.substring(startIndex);
300
+                        sealManage1.setAnnexPath(annexPath);
301
+                    }
300 302
                 } else {
301 303
                     sealManage1.setAnnexPath(null);
302 304
                 }