private void sendCheckMail(String paymentRequestId, String checkMsg) {
ArpPaymentRequestModel requestModel = this.get(paymentRequestId);
// 收件人: 付款申请人
SysUserModel um = new SysUserModel();
um.setUserCode(requestModel.getCreator());
List<SysUserModel> lum = sysUserManager.findByExample(um);
String mailTo = lum.get(0).getEmail();
MsgMailPublisherModel mail = new MsgMailPublisherModel();
mail.setMailSubject("付款申请提醒");// 主题
mail.setMailTo(mailTo); // 收件人
mail.setMailText("您好, 您的付款申请单" + requestModel.getRequestNo() + "未能自动提交付款,原因:" + checkMsg);// 邮件内容
mail.setMailFrom("system@sinotrans.com");// 发件人
mail.setPublishFlag("N");// 邮件发送标识
mail.setInOutType("O");
msgMailPublisherManager.save(mail);
}