소스 검색

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

wangqiong123 2 년 전
부모
커밋
728d6267df
1개의 변경된 파일19개의 추가작업 그리고 2개의 파일을 삭제
  1. 19
    2
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java

+ 19
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java 파일 보기

1114
         }
1114
         }
1115
         caseApplication.setAnnexType(8);
1115
         caseApplication.setAnnexType(8);
1116
         // 查询缴费凭证
1116
         // 查询缴费凭证
1117
-        List<CaseAttach> payOrderList = caseAttachMapper.queryCaseAttachList(caseApplication);
1118
-        caseApplicationselect.setPayOrderList(payOrderList);
1117
+        List<CaseAttach> caseAttachList = caseAttachMapper.queryCaseAttachList(caseApplication);
1118
+        if (caseAttachList != null && caseAttachList.size() > 0) {
1119
+            for (CaseAttach caseAttach : caseAttachList) {
1120
+                String annexName = caseAttach.getAnnexName();
1121
+                String prefix = "/profile";
1122
+                int startIndex = annexName.indexOf(prefix);
1123
+                startIndex += prefix.length();
1124
+                String annexPath = "/uploadPath" + annexName.substring(startIndex);
1125
+                caseAttach.setAnnexPath(annexPath);
1126
+                int startIndexnew = annexName.lastIndexOf("/");
1127
+                if(startIndexnew!=-1){
1128
+                    String annexNamenew  = annexName.substring(startIndexnew+1);
1129
+                    caseAttach.setAnnexName(annexNamenew);
1130
+                }
1131
+
1132
+
1133
+            }
1134
+        }
1135
+        caseApplicationselect.setPayOrderList(caseAttachList);
1119
 
1136
 
1120
         return caseApplicationselect;
1137
         return caseApplicationselect;
1121
     }
1138
     }