Merge branch 'qtz' of SH-Arbitrate/Mediation-Backend into dev

This commit was merged in pull request #32.
This commit is contained in:
qtz
2024-01-20 19:13:12 +08:00
committed by Gitea
2 changed files with 32 additions and 30 deletions
@@ -97,6 +97,8 @@ public class MsSignSealServiceImpl implements MsSignSealService {
private SendMailRecordMapper sendMailRecordMapper;
@Override
@Transactional
public AjaxResult sureMediationSeal(MsCaseApplicationVO caseApplicationVO) throws EsignDemoException, InterruptedException {
@@ -550,37 +552,37 @@ public class MsSignSealServiceImpl implements MsSignSealService {
boolean appEmailFlag = sendCaseEmail(caseApplication1, appEmail, caseAttachList);
SendMailRecord sendMailRecord = new SendMailRecord();
sendMailRecord.setCaseId(id);
sendMailRecord.setMailAddress(appEmail);
sendMailRecord.setMailContent("您好,审核后的裁决书在附件中请查阅");
// sendMailRecord.setMailContent("您好,您的{"+caseApplication1.getCaseNum()+"}案件,审核后的裁决书在附件中请查阅");
sendMailRecord.setMailName("签署后的裁决书");
sendMailRecord.setSendTime(new Date());
sendMailRecord.setCreateBy(getUsername());
if (appEmailFlag) {
sendMailRecord.setSendStatus(1);
} else {
sendMailRecord.setSendStatus(0);
}
sendMailRecordMapper.saveSendMailRecord(sendMailRecord);
// SendMailRecord sendMailRecord = new SendMailRecord();
// sendMailRecord.setCaseId(id);
// sendMailRecord.setMailAddress(appEmail);
// sendMailRecord.setMailContent("您好,审核后的裁决书在附件中请查阅");
//// sendMailRecord.setMailContent("您好,您的{"+caseApplication1.getCaseNum()+"}案件,审核后的裁决书在附件中请查阅");
// sendMailRecord.setMailName("签署后的裁决书");
// sendMailRecord.setSendTime(new Date());
// sendMailRecord.setCreateBy(getUsername());
// if (appEmailFlag) {
// sendMailRecord.setSendStatus(1);
// } else {
// sendMailRecord.setSendStatus(0);
// }
// sendMailRecordMapper.saveSendMailRecord(sendMailRecord);
boolean resEmailFlag = sendCaseEmail(caseApplication1, resEmail, caseAttachList);
SendMailRecord sendMailRecord1 = new SendMailRecord();
sendMailRecord1.setCaseId(id);
sendMailRecord1.setMailAddress(resEmail);
// sendMailRecord.setMailContent("您好,您的{"+caseApplication1.getCaseNum()+"}案件,审核后的裁决书在附件中请查阅");
sendMailRecord1.setMailContent("您好,审核后的裁决书在附件中请查阅");
sendMailRecord1.setMailName("签署后的裁决书");
sendMailRecord1.setSendTime(new Date());
sendMailRecord1.setCreateBy(getUsername());
if (resEmailFlag) {
sendMailRecord1.setSendStatus(1);
}else {
sendMailRecord1.setSendStatus(0);
}
sendMailRecordMapper.saveSendMailRecord(sendMailRecord1);
// SendMailRecord sendMailRecord1 = new SendMailRecord();
// sendMailRecord1.setCaseId(id);
// sendMailRecord1.setMailAddress(resEmail);
//// sendMailRecord.setMailContent("您好,您的{"+caseApplication1.getCaseNum()+"}案件,审核后的裁决书在附件中请查阅");
// sendMailRecord1.setMailContent("您好,审核后的裁决书在附件中请查阅");
// sendMailRecord1.setMailName("签署后的裁决书");
// sendMailRecord1.setSendTime(new Date());
// sendMailRecord1.setCreateBy(getUsername());
// if (resEmailFlag) {
// sendMailRecord1.setSendStatus(1);
// }else {
// sendMailRecord1.setSendStatus(0);
// }
// sendMailRecordMapper.saveSendMailRecord(sendMailRecord1);
if(!appEmailFlag&&!resEmailFlag){
throw new ServiceException("裁决书发送失败");
}
@@ -291,7 +291,7 @@ public class FixSelectFlowDetailUtils {
MsCaseApplication caseApplicationselect = msCaseApplicationMapper.selectByPrimaryKey(sealSignRecord.getCaseAppliId());
if ((mssealSignRecord.getSignFlowStatus() != null) && (mssealSignRecord.getSignFlowStatus().intValue() == 1)) {
// 根据流程id查找下一个流程节点
MsCaseFlow nextFlow = caseFlowMapper.nextFlow(caseApplicationselect.getId().intValue());
MsCaseFlow nextFlow = caseFlowMapper.nextFlow(caseApplicationselect.getCaseFlowId().intValue());
MsCaseApplication application = new MsCaseApplication();
application.setId(caseApplicationselect.getId());
application.setCaseFlowId(nextFlow.getId());
@@ -313,7 +313,7 @@ public class FixSelectFlowDetailUtils {
sealSignRecordMapper.updateByPrimaryKeySelective(mssealSignRecord);
// 根据流程id查找下一个流程节点
MsCaseFlow nextFlow = caseFlowMapper.nextFlow(caseApplicationselect.getId().intValue());
MsCaseFlow nextFlow = caseFlowMapper.nextFlow(caseApplicationselect.getCaseFlowId().intValue());
MsCaseApplication application = new MsCaseApplication();
application.setId(caseApplicationselect.getId());
application.setCaseFlowId(nextFlow.getId());