Commit e509a0cc by “zcwang”

modify: 执行工单,更新发送邮件状态

parent 41a0b377
......@@ -822,7 +822,7 @@ public class ChangeFlowBiz {
changeRecord.setChangeConfirmResultTime(changeConfirmResultTime);
changeRecord.setUpdateTime(DateUtils.getCurrentTime());
// 延期需要重新发邮件,改变执行邮件状态
changeRecord.setAutoSubmitEmail(false);
changeRecord.setAutoSubmitEmail(0);
changeFlowService.updateRecord(changeRecord);
return null;
default:
......
......@@ -159,6 +159,9 @@ public class AutoSubmit extends IJobHandler {
userEmailList.add(appConfig.getChangeManageQM());
changeFlowBiz.qcSendEmail(receiver, userEmailList, subjectParam,
EmailTemplateEnum.YX_QC_CHANGE_AFFIRM, map);
// 发送邮件,执行邮件更新为已发送
changeRecord.setAutoSubmitEmail(1);
changeFlowService.updateRecord(changeRecord);
// 如果是供应商发起,再次发送供应商邮件
if (changeRecord.getCreateSource().equals(CreateSourceEnum.TONG_ZHOU.getType())) {
sendSupplierEmail.sendSupplierEmail(changeRecord.getCreateSupplier(), subjectParam,
......
......@@ -170,7 +170,7 @@ public class ChangeRecord {
/**
* 自动执行邮件发送
*/
private Boolean autoSubmitEmail;
private Integer autoSubmitEmail;
/**
* 创建时间
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment