优化调解功能

This commit is contained in:
qitz
2024-02-01 10:32:07 +08:00
parent 9b9e52d13d
commit b7b279295f
@@ -1276,7 +1276,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
* @param req
* @return
*/
@Transactional
@Transactional(rollbackFor = Exception.class)
@Override
public AjaxResult mediation(MsCaseApplicationReq req) throws EsignDemoException, InterruptedException {
// 查询案件是否存在
@@ -1611,14 +1611,25 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
} else {
return AjaxResult.error();
}
}
} else {
return AjaxResult.error();
}
}
// 修改案件状态为待签名
Example flowExample = new Example(MsCaseFlow.class);
flowExample.createCriteria().andEqualTo("caseStatusName", "待签名");
MsCaseFlow caseFlow = caseFlowMapper.selectOneByExample(flowExample);
if(caseFlow != null){
application.setCaseFlowId(caseFlow.getId());
application.setCaseStatusName(caseFlow.getCaseStatusName());
msCaseApplicationMapper.updateByPrimaryKey(application);
}
application.setIsReconci(isReconci);
application.setMediaResult(mediaResult);
msCaseApplicationMapper.updateByPrimaryKeySelective(application);
}else{
return AjaxResult.error();
}