Browse Source

Merge branch 'qtz5' of SH-Arbitrate/Arbitrate-Backend into dev

qtz 2 years ago
parent
commit
9bfcc02a48

+ 8
- 6
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/DeptIdentifyServiceImpl.java View File

@@ -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
                 }