|
|
@@ -230,17 +230,24 @@ public class CaseApplicationLogServiceImpl implements CaseApplicationLogService
|
|
230
|
230
|
public AjaxResult selectCompareCase(UpdateSubmitVO vo) {
|
|
231
|
231
|
// 查询当前版本号和上一个版本号的案件
|
|
232
|
232
|
CaseApplication afterCase = caseApplicationLogMapper.selectByCaseIdAndVersion(vo.getCaseId(), vo.getVersion());
|
|
233
|
|
- CaseApplication beforeCase = caseApplicationLogMapper.selectByCaseIdAndVersion(vo.getCaseId(), vo.getVersion() - 1);
|
|
|
233
|
+ CaseApplication beforeCase = caseApplicationLogMapper.selectBeforeCase(vo.getCaseId(), vo.getVersion());
|
|
234
|
234
|
// 查询案件关联人员
|
|
235
|
235
|
beforeCase.setCaseAffiliates(caseAffiliateLogMapper.selectCaseAffiliate(beforeCase.getCaseLogId()));
|
|
236
|
236
|
afterCase.setCaseAffiliates(caseAffiliateLogMapper.selectCaseAffiliate(afterCase.getCaseLogId()));
|
|
|
237
|
+ // 查询附件
|
|
|
238
|
+ CaseAttach caseAttach = new CaseAttach();
|
|
|
239
|
+ caseAttach.setCaseAppliLogId(beforeCase.getCaseLogId());
|
|
|
240
|
+ caseAttach.setAnnexType(2);
|
|
|
241
|
+ beforeCase.setCaseAttachList(caseAttachLogMapper.getCaseAttachByCaseIdAndType(caseAttach));
|
|
|
242
|
+ caseAttach.setCaseAppliLogId(afterCase.getCaseLogId());
|
|
|
243
|
+ afterCase.setCaseAttachList(caseAttachLogMapper.getCaseAttachByCaseIdAndType(caseAttach));
|
|
237
|
244
|
CompareCaseVO compareCaseVO = new CompareCaseVO();
|
|
238
|
245
|
compareCaseVO.setBeforeCase(beforeCase);
|
|
239
|
246
|
compareCaseVO.setAfterCase(afterCase);
|
|
240
|
247
|
// 对比两个版本修改的字段
|
|
241
|
248
|
String[] columns = {"caseSubjectAmount","loanStartDate", "loanEndDate","contractNumber","claimInterestOwed","claimLiquidDamag",
|
|
242
|
249
|
"claimPrinciOwed","arbitratClaims","properPreser","requestRule"};
|
|
243
|
|
- String[] affiliateColumns = {"name", "identityNum","contactTelphone","contactAdress","workTelphone","workAddress",
|
|
|
250
|
+ String[] affiliateColumns = {"name", "identityNum","contactTelphone","contactAddress","workTelphone","workAddress",
|
|
244
|
251
|
"nameAgent", "identityNumAgent","contactTelphoneAgent","contactAddressAgent","residenAffili","compLegalPerson",
|
|
245
|
252
|
"compLegalperPost","responSex","responBirth"};
|
|
246
|
253
|
StringBuilder changeColumn = new StringBuilder();
|