|
|
@@ -24,6 +24,7 @@ import java.io.IOException;
|
|
24
|
24
|
import java.time.LocalDate;
|
|
25
|
25
|
import java.time.LocalDateTime;
|
|
26
|
26
|
import java.time.format.DateTimeFormatter;
|
|
|
27
|
+import java.util.ArrayList;
|
|
27
|
28
|
import java.util.Arrays;
|
|
28
|
29
|
import java.util.List;
|
|
29
|
30
|
|
|
|
@@ -63,6 +64,16 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
|
|
63
|
64
|
}
|
|
64
|
65
|
//根据案件id查询案件证据材料
|
|
65
|
66
|
List<CaseAttach> evidenceMaterialList = caseAttachMapper.queryAnnexPathByCaseId(id);
|
|
|
67
|
+ if (evidenceMaterialList!=null&&evidenceMaterialList.size()>0){
|
|
|
68
|
+ for (CaseAttach caseAttach : evidenceMaterialList) {
|
|
|
69
|
+ String path =caseAttach.getAnnexName();
|
|
|
70
|
+ String prefix = "/profile";
|
|
|
71
|
+ int startIndex = path.indexOf(prefix);
|
|
|
72
|
+ startIndex += prefix.length();
|
|
|
73
|
+ String extractedPath = "/uploadPath"+path.substring(startIndex);
|
|
|
74
|
+ caseAttach.setAnnexPath(extractedPath);
|
|
|
75
|
+ }
|
|
|
76
|
+ }
|
|
66
|
77
|
caseDetailVO.setEvidenceMaterialList(evidenceMaterialList);
|
|
67
|
78
|
}
|
|
68
|
79
|
return AjaxResult.success(caseDetailVO);
|