|
@@ -34,9 +34,11 @@ public class PlanStudyMailThread implements Runnable{
|
|
public void sendMail() {
|
|
public void sendMail() {
|
|
String call = "学员";
|
|
String call = "学员";
|
|
String studyState = "已完成";
|
|
String studyState = "已完成";
|
|
|
|
+ String jumpUrl = "/training/spec/myplan";
|
|
if (sendType == 2){
|
|
if (sendType == 2){
|
|
call = "导师";
|
|
call = "导师";
|
|
studyState = "学员已反馈";
|
|
studyState = "学员已反馈";
|
|
|
|
+ jumpUrl = "/training/spec/planItem/" + tStPlan.getYearPlanId();
|
|
}else if (sendType == 3){
|
|
}else if (sendType == 3){
|
|
studyState = "导师已拒绝";
|
|
studyState = "导师已拒绝";
|
|
}else if (sendType == 1){
|
|
}else if (sendType == 1){
|
|
@@ -59,8 +61,8 @@ public class PlanStudyMailThread implements Runnable{
|
|
"培训内容:<b>plantName</b><br>" +
|
|
"培训内容:<b>plantName</b><br>" +
|
|
"学习状态:<b>studyState</b><br>" +
|
|
"学习状态:<b>studyState</b><br>" +
|
|
"学员:<b>staffName</b><br>" +
|
|
"学员:<b>staffName</b><br>" +
|
|
- "请登录<a href=\"https://cpms.basf-ypc.net.cn/cpms/index.html#/training/spec/plan\">CPMS管理系统</a>查看。<br>" +
|
|
|
|
- "Please log in the <a href=\"https://cpms.basf-ypc.net.cn/cpms/index.html#/training/spec/plan\">CPMS</a> to handle it.</p>" +
|
|
|
|
|
|
+ "请登录<a href=\"https://cpms.basf-ypc.net.cn/cpms/index.html#jumpUrl\">CPMS管理系统</a>查看。<br>" +
|
|
|
|
+ "Please log in the <a href=\"https://cpms.basf-ypc.net.cn/cpms/index.html#jumpUrl\">CPMS</a> to handle it.</p>" +
|
|
"<p align=\"right\">date</p>" +
|
|
"<p align=\"right\">date</p>" +
|
|
"<div style=\"width:700px;margin:0 auto;\">" +
|
|
"<div style=\"width:700px;margin:0 auto;\">" +
|
|
"<div style=\"padding:10px 10px 0;border-top:1px solid #ccc;color:#747474;margin-bottom:20px;line-height:1.3em;font-size:12px;\">" +
|
|
"<div style=\"padding:10px 10px 0;border-top:1px solid #ccc;color:#747474;margin-bottom:20px;line-height:1.3em;font-size:12px;\">" +
|
|
@@ -72,7 +74,7 @@ public class PlanStudyMailThread implements Runnable{
|
|
String four = three.replaceFirst("call",call);
|
|
String four = three.replaceFirst("call",call);
|
|
String five = four.replaceFirst("studyState",studyState);
|
|
String five = four.replaceFirst("studyState",studyState);
|
|
String seven = five.replaceFirst("staffName", tStPlan.getStaffName());
|
|
String seven = five.replaceFirst("staffName", tStPlan.getStaffName());
|
|
- String result = seven.replaceFirst("date", String.valueOf(new Date()));
|
|
|
|
|
|
+ String result = seven.replaceFirst("date", String.valueOf(new Date())).replaceFirst("jumpUrl",jumpUrl).replaceFirst("jumpUrl",jumpUrl);
|
|
prime = prime + result;
|
|
prime = prime + result;
|
|
//写html结尾内容
|
|
//写html结尾内容
|
|
String end = "</tbody></table></div></body></html>";
|
|
String end = "</tbody></table></div></body></html>";
|