优化归档送达功能
This commit is contained in:
+30
-28
@@ -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("裁决书发送失败");
|
||||
}
|
||||
|
||||
+2
-2
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user