|
|
@@ -156,12 +156,12 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
* @param type 类型
|
|
|
*/
|
|
|
private void sendEmail(AdminListBo my, Admin a,Integer type) {
|
|
|
- String title="";
|
|
|
- if (type==0) title="外出申请驳回提醒";
|
|
|
- else if (type==1) title="外出申请提醒";
|
|
|
- else if (type==2) title="外出申请同意提醒";
|
|
|
+ StringBuffer title=new StringBuffer();
|
|
|
+ if (type==0) title=title.append("外出申请驳回提醒");
|
|
|
+ else if (type==1) title=title.append("外出申请提醒");
|
|
|
+ else if (type==2) title=title.append("外出申请同意提醒");
|
|
|
if (SendEmailUtil.isEmail(a.getEmail())) {
|
|
|
- EmailBo email=new EmailBo(title,a.getEmail() , my.getDepartmentName(), my.getName(),"详情请登录微信打卡小程序查看,谢谢!") ;
|
|
|
+ EmailBo email=new EmailBo(title.toString(),a.getEmail() , my.getDepartmentName(), my.getName(),"详情请登录微信打卡小程序查看,谢谢!") ;
|
|
|
asyncUtils.send(email);
|
|
|
}
|
|
|
}
|
|
|
@@ -691,13 +691,12 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
publicReleaseMapper.updateByPrimaryKeySelective(newP);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
addpublicLog(newP.getId(),PublicReleaseLog.states.fq.getCode(),"发起技术协助。");
|
|
|
addWeChatNotice( aid,1,"发起技术协助。",newP.getId());
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- *
|
|
|
+ * 添加微信提示和站内消息
|
|
|
* @param aid 接受者
|
|
|
* @param type 状态 0驳回 1发起 2同意 3撤销
|
|
|
* @param str 备注
|
|
|
@@ -709,7 +708,7 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- *
|
|
|
+ * 添加微信提示和站内消息
|
|
|
* @param recipient 接受者
|
|
|
* @param type 状态 0驳回 1发起 2同意
|
|
|
* @param str
|