|
|
@@ -1352,8 +1352,23 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
1352
|
1352
|
sealSignRecord.setPensonNameMedi(sysUser.getNickName());
|
|
1353
|
1353
|
}
|
|
1354
|
1354
|
|
|
1355
|
|
- sealSignRecord.setPensonAccount(caseAffiliate.getContactTelphoneAgent());
|
|
1356
|
|
- sealSignRecord.setPensonName(caseAffiliate.getNameAgent());
|
|
|
1355
|
+ Integer organizeFlag = caseAffiliate.getOrganizeFlag();
|
|
|
1356
|
+ if(organizeFlag!=null){
|
|
|
1357
|
+ if(organizeFlag.intValue()==1){
|
|
|
1358
|
+ sealSignRecord.setPensonAccount(caseAffiliate.getContactTelphoneAgent());
|
|
|
1359
|
+ sealSignRecord.setPensonName(caseAffiliate.getNameAgent());
|
|
|
1360
|
+ }else {
|
|
|
1361
|
+ String nameAgent = caseAffiliate.getNameAgent();
|
|
|
1362
|
+ if(StringUtils.isNotBlank(nameAgent)){
|
|
|
1363
|
+ sealSignRecord.setPensonAccount(caseAffiliate.getContactTelphoneAgent());
|
|
|
1364
|
+ sealSignRecord.setPensonName(caseAffiliate.getNameAgent());
|
|
|
1365
|
+ }else {
|
|
|
1366
|
+ sealSignRecord.setPensonAccount(caseAffiliate.getApplicationPhone());
|
|
|
1367
|
+ sealSignRecord.setPensonName(caseAffiliate.getApplicationName());
|
|
|
1368
|
+ }
|
|
|
1369
|
+ }
|
|
|
1370
|
+ }
|
|
|
1371
|
+
|
|
1357
|
1372
|
sealSignRecord.setPensonAccountRes(caseAffiliate.getRespondentPhone());
|
|
1358
|
1373
|
sealSignRecord.setPensonNameRes(caseAffiliate.getRespondentName());
|
|
1359
|
1374
|
|
|
|
@@ -1659,7 +1674,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
1659
|
1674
|
request1.setTemplateParamSet(new String[]{caseAffiliate.getRespondentName(), application.getCaseNum()});
|
|
1660
|
1675
|
Boolean aBoolean1 = SmsUtils.sendSms(request1);
|
|
1661
|
1676
|
|
|
1662
|
|
- // 修改案件状态为待签名
|
|
|
1677
|
+ // 修改案件状态为结束
|
|
1663
|
1678
|
Example flowExample = new Example(MsCaseFlow.class);
|
|
1664
|
1679
|
flowExample.createCriteria().andEqualTo("caseStatusName", "结束");
|
|
1665
|
1680
|
MsCaseFlow caseFlow = caseFlowMapper.selectOneByExample(flowExample);
|
|
|
@@ -1674,8 +1689,19 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
1674
|
1689
|
return AjaxResult.success();
|
|
1675
|
1690
|
}else if(mediaResult.intValue()==3){
|
|
1676
|
1691
|
//未达成调解但不再争议
|
|
|
1692
|
+ // 修改案件状态为结束
|
|
|
1693
|
+ Example flowExample = new Example(MsCaseFlow.class);
|
|
|
1694
|
+ flowExample.createCriteria().andEqualTo("caseStatusName", "结束");
|
|
|
1695
|
+ MsCaseFlow caseFlow = caseFlowMapper.selectOneByExample(flowExample);
|
|
|
1696
|
+ if(caseFlow != null){
|
|
|
1697
|
+ application.setCaseFlowId(caseFlow.getId());
|
|
|
1698
|
+ application.setCaseStatusName(caseFlow.getCaseStatusName());
|
|
|
1699
|
+ msCaseApplicationMapper.updateByPrimaryKey(application);
|
|
|
1700
|
+ }
|
|
1677
|
1701
|
|
|
1678
|
|
-
|
|
|
1702
|
+ application.setMediaResult(mediaResult);
|
|
|
1703
|
+ msCaseApplicationMapper.updateByPrimaryKeySelective(application);
|
|
|
1704
|
+ return AjaxResult.success();
|
|
1679
|
1705
|
}else if(mediaResult.intValue()==4){
|
|
1680
|
1706
|
//未达成调解但同意引入仲裁
|
|
1681
|
1707
|
|