小程序立案申请书展示
This commit is contained in:
+14
-6
@@ -80,12 +80,20 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
|
|||||||
List<CaseAttach> evidenceMaterialList = caseAttachMapper.queryAnnexPathByCaseId(id);
|
List<CaseAttach> evidenceMaterialList = caseAttachMapper.queryAnnexPathByCaseId(id);
|
||||||
if (evidenceMaterialList != null && evidenceMaterialList.size() > 0) {
|
if (evidenceMaterialList != null && evidenceMaterialList.size() > 0) {
|
||||||
for (CaseAttach caseAttach : evidenceMaterialList) {
|
for (CaseAttach caseAttach : evidenceMaterialList) {
|
||||||
String path = caseAttach.getAnnexName();
|
//根据附件类型决定返回的路径
|
||||||
String prefix = "/profile";
|
Integer annexType = caseAttach.getAnnexType();
|
||||||
int startIndex = path.indexOf(prefix);
|
if (annexType != 1){
|
||||||
startIndex += prefix.length();
|
String path = caseAttach.getAnnexName();
|
||||||
String extractedPath = "/uploadPath" + path.substring(startIndex);
|
String prefix = "/profile";
|
||||||
caseAttach.setAnnexPath(extractedPath);
|
int startIndex = path.indexOf(prefix);
|
||||||
|
startIndex += prefix.length();
|
||||||
|
String extractedPath = "/uploadPath" + path.substring(startIndex);
|
||||||
|
caseAttach.setAnnexPath(extractedPath);
|
||||||
|
}else {
|
||||||
|
String annexPath = caseAttach.getAnnexPath();
|
||||||
|
String result = annexPath.replace("/home/ruoyi", "");
|
||||||
|
caseAttach.setAnnexPath(result);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
caseDetailVO.setEvidenceMaterialList(evidenceMaterialList);
|
caseDetailVO.setEvidenceMaterialList(evidenceMaterialList);
|
||||||
|
|||||||
Reference in New Issue
Block a user