|
|
@@ -6,14 +6,8 @@ import com.ruoyi.common.utils.DateUtils;
|
|
6
|
6
|
import com.ruoyi.common.utils.SmsUtils;
|
|
7
|
7
|
import com.ruoyi.common.utils.StringUtils;
|
|
8
|
8
|
import com.ruoyi.common.utils.bean.BeanUtils;
|
|
9
|
|
-import com.ruoyi.wisdomarbitrate.domain.ArbitrateRecord;
|
|
10
|
|
-import com.ruoyi.wisdomarbitrate.domain.Arbitrator;
|
|
11
|
|
-import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
|
|
12
|
|
-import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
|
13
|
|
-import com.ruoyi.wisdomarbitrate.mapper.ArbitrateRecordMapper;
|
|
14
|
|
-import com.ruoyi.wisdomarbitrate.mapper.ArbitratorMapper;
|
|
15
|
|
-import com.ruoyi.wisdomarbitrate.mapper.CaseAffiliateMapper;
|
|
16
|
|
-import com.ruoyi.wisdomarbitrate.mapper.CaseApplicationMapper;
|
|
|
9
|
+import com.ruoyi.wisdomarbitrate.domain.*;
|
|
|
10
|
+import com.ruoyi.wisdomarbitrate.mapper.*;
|
|
17
|
11
|
import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService;
|
|
18
|
12
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
19
|
13
|
import org.springframework.stereotype.Service;
|
|
|
@@ -42,6 +36,11 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
42
|
36
|
@Autowired
|
|
43
|
37
|
private ArbitrateRecordMapper arbitrateRecordMapper;
|
|
44
|
38
|
|
|
|
39
|
+ @Autowired
|
|
|
40
|
+ private CaseAttachMapper caseAttachMapper;
|
|
|
41
|
+
|
|
|
42
|
+
|
|
|
43
|
+
|
|
45
|
44
|
|
|
46
|
45
|
@Override
|
|
47
|
46
|
public List<CaseApplication> selectCaseApplicationList(CaseApplication caseApplication) {
|
|
|
@@ -69,6 +68,15 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
69
|
68
|
caseAffiliateMapper.batchCaseAffiliate(caseAffiliates);
|
|
70
|
69
|
}
|
|
71
|
70
|
|
|
|
71
|
+ List<CaseAttach> caseAttachList = caseApplication.getCaseAttachList();
|
|
|
72
|
+ if(caseAttachList!=null&&caseAttachList.size()>0){
|
|
|
73
|
+ for (CaseAttach caseAttach : caseAttachList){
|
|
|
74
|
+ caseAttach.setCaseAppliId(caseApplication.getId());
|
|
|
75
|
+ caseAttachMapper.updateCaseAttach(caseAttach);
|
|
|
76
|
+ }
|
|
|
77
|
+
|
|
|
78
|
+ }
|
|
|
79
|
+
|
|
72
|
80
|
return rows;
|
|
73
|
81
|
}
|
|
74
|
82
|
|
|
|
@@ -118,6 +126,30 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
118
|
126
|
arbitrateRecord.setCaseAppliId(caseApplication.getId());
|
|
119
|
127
|
ArbitrateRecord arbitrateRecordselect = arbitrateRecordMapper.selectArbitrateRecord(arbitrateRecord);
|
|
120
|
128
|
|
|
|
129
|
+// CaseAttach caseAttachSelect = new CaseAttach();
|
|
|
130
|
+// caseAttachSelect.setCaseAppliId(caseApplication.getId());
|
|
|
131
|
+// caseAttachSelect.setAnnexType(2);
|
|
|
132
|
+
|
|
|
133
|
+ List<CaseAttach> caseAttachList = caseAttachMapper.queryCaseAttachList(caseApplication);
|
|
|
134
|
+ if (caseAttachList != null && caseAttachList.size() > 0) {
|
|
|
135
|
+ for (CaseAttach caseAttach : caseAttachList) {
|
|
|
136
|
+ String annexName = caseAttach.getAnnexName();
|
|
|
137
|
+ String prefix = "/profile";
|
|
|
138
|
+ int startIndex = annexName.indexOf(prefix);
|
|
|
139
|
+ startIndex += prefix.length();
|
|
|
140
|
+ String annexPath = "/uploadPath" + annexName.substring(startIndex);
|
|
|
141
|
+ caseAttach.setAnnexPath(annexPath);
|
|
|
142
|
+ int startIndexnew = annexName.lastIndexOf("/");
|
|
|
143
|
+ if(startIndexnew!=-1){
|
|
|
144
|
+ String annexNamenew = annexName.substring(startIndexnew+1);
|
|
|
145
|
+ caseAttach.setAnnexName(annexNamenew);
|
|
|
146
|
+ }
|
|
|
147
|
+
|
|
|
148
|
+
|
|
|
149
|
+ }
|
|
|
150
|
+ }
|
|
|
151
|
+ caseApplicationselect.setCaseAttachList(caseAttachList);
|
|
|
152
|
+
|
|
121
|
153
|
List<CaseAffiliate> caseAffiliatListeselect = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
|
|
122
|
154
|
if(caseAffiliatListeselect!=null){
|
|
123
|
155
|
StringBuffer applicantName = new StringBuffer();
|