优化公章列表查询

This commit is contained in:
qitz
2024-01-10 13:41:18 +08:00
parent 70af2e822b
commit f38d6997bc
@@ -291,12 +291,14 @@ public class DeptIdentifyServiceImpl implements IDeptIdentifyService {
if (annexId != null) { if (annexId != null) {
//根据附件id查询路径 //根据附件id查询路径
CaseAttach caseAttach = caseAttachMapper.queryAnnexById(annexId); CaseAttach caseAttach = caseAttachMapper.queryAnnexById(annexId);
String annexName = caseAttach.getAnnexName(); if(caseAttach!=null){
String prefix = "/profile"; String annexName = caseAttach.getAnnexName();
int startIndex = annexName.indexOf(prefix); String prefix = "/profile";
startIndex += prefix.length(); int startIndex = annexName.indexOf(prefix);
String annexPath = "/uploadPath" + annexName.substring(startIndex); startIndex += prefix.length();
sealManage1.setAnnexPath(annexPath); String annexPath = "/uploadPath" + annexName.substring(startIndex);
sealManage1.setAnnexPath(annexPath);
}
} else { } else {
sealManage1.setAnnexPath(null); sealManage1.setAnnexPath(null);
} }