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

This commit was merged in pull request #334.
This commit is contained in:
qtz
2024-01-10 13:44:44 +08:00
committed by Gitea
@@ -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);
if(caseAttach!=null){
String annexName = caseAttach.getAnnexName(); String annexName = caseAttach.getAnnexName();
String prefix = "/profile"; String prefix = "/profile";
int startIndex = annexName.indexOf(prefix); int startIndex = annexName.indexOf(prefix);
startIndex += prefix.length(); startIndex += prefix.length();
String annexPath = "/uploadPath" + annexName.substring(startIndex); String annexPath = "/uploadPath" + annexName.substring(startIndex);
sealManage1.setAnnexPath(annexPath); sealManage1.setAnnexPath(annexPath);
}
} else { } else {
sealManage1.setAnnexPath(null); sealManage1.setAnnexPath(null);
} }