|
|
|
@ -136,8 +136,10 @@ public class SendPortalTodoUtil {
|
|
|
|
|
if("0".equals(resultCode)){
|
|
|
|
|
|
|
|
|
|
System.out.println(emailArray.toJSONString());
|
|
|
|
|
String notificationSubject = ""+requestname;
|
|
|
|
|
String notificationContent = ""+requestname ;
|
|
|
|
|
|
|
|
|
|
String notificationSubject = "You have a new to-do list:"+requestname+",Please handle it in time";
|
|
|
|
|
String notificationContent = "You have a new to-do list:"+requestname+",Please handle it in time";
|
|
|
|
|
|
|
|
|
|
sendMailUtil.sendMail(requestId,emailArray.toJSONString(),notificationSubject,notificationContent);
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
@ -280,8 +282,10 @@ public class SendPortalTodoUtil {
|
|
|
|
|
if("0".equals(resultCode)){
|
|
|
|
|
|
|
|
|
|
System.out.println(emailArray.toJSONString());
|
|
|
|
|
String notificationSubject = ""+requestname;
|
|
|
|
|
String notificationContent = ""+requestname ;
|
|
|
|
|
|
|
|
|
|
String notificationSubject = "You have a new to-do list:"+requestname+",Please handle it in time";
|
|
|
|
|
String notificationContent = "You have a new to-do list:"+requestname+",Please handle it in time";
|
|
|
|
|
|
|
|
|
|
sendMailUtil.sendMail(requestid,emailArray.toJSONString(),notificationSubject,notificationContent);
|
|
|
|
|
}else{
|
|
|
|
|
sendPortalErrorUtil.doCreateSendPortalTodoErrorInfo();
|
|
|
|
@ -317,6 +321,7 @@ public class SendPortalTodoUtil {
|
|
|
|
|
String terminal = "1" ;
|
|
|
|
|
String taskType = "0";
|
|
|
|
|
String objectId = "" ;
|
|
|
|
|
String requestname = "" ;
|
|
|
|
|
|
|
|
|
|
JSONArray emailArray = new JSONArray();
|
|
|
|
|
Pattern regex = Pattern.compile(EMAIL_REGEX_DEFAULT);
|
|
|
|
@ -360,6 +365,7 @@ public class SendPortalTodoUtil {
|
|
|
|
|
rs.executeQuery(sql);
|
|
|
|
|
if (rs.next()){
|
|
|
|
|
String title = Util.null2String(rs.getString("requestname")) ;
|
|
|
|
|
requestname = title;
|
|
|
|
|
String creator = Util.null2String(rs.getString("loginid")) ;
|
|
|
|
|
String taskCode = Util.null2String(rs.getString("taskcode")) ;
|
|
|
|
|
String nodeId = Util.null2String(rs.getString("nodeid")) ;
|
|
|
|
@ -413,6 +419,7 @@ public class SendPortalTodoUtil {
|
|
|
|
|
if (rs.next()){
|
|
|
|
|
|
|
|
|
|
String title = Util.null2String(rs.getString("requestname")) ;
|
|
|
|
|
requestname = title;
|
|
|
|
|
String creator = Util.null2String(rs.getString("loginid")) ;
|
|
|
|
|
String taskCode = Util.null2String(rs.getString("taskcode")) ;
|
|
|
|
|
String nodeId = Util.null2String(rs.getString("nodeid")) ;
|
|
|
|
@ -491,8 +498,8 @@ public class SendPortalTodoUtil {
|
|
|
|
|
if("0".equals(resultCode)){
|
|
|
|
|
|
|
|
|
|
System.out.println(emailArray.toJSONString());
|
|
|
|
|
String notificationSubject = "";
|
|
|
|
|
String notificationContent = "" ;
|
|
|
|
|
String notificationSubject = "You have a new to-do list:"+requestname+",Please handle it in time";
|
|
|
|
|
String notificationContent = "You have a new to-do list:"+requestname+",Please handle it in time";
|
|
|
|
|
sendMailUtil.sendMail(requestid,emailArray.toJSONString(),notificationSubject,notificationContent);
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
@ -532,6 +539,7 @@ public class SendPortalTodoUtil {
|
|
|
|
|
String objectAction = "0" ;
|
|
|
|
|
String objectType = "0";
|
|
|
|
|
String objectId = "" ;
|
|
|
|
|
String requestname = "";
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
String actionType = "2" ;
|
|
|
|
@ -550,6 +558,7 @@ public class SendPortalTodoUtil {
|
|
|
|
|
if (rs.next()){
|
|
|
|
|
|
|
|
|
|
String title = Util.null2String(rs.getString("requestname")) ;
|
|
|
|
|
requestname = title ;
|
|
|
|
|
String creator = Util.null2String(rs.getString("loginid")) ;
|
|
|
|
|
String taskCode = Util.null2String(rs.getString("taskcode")) ;
|
|
|
|
|
String nodeId = Util.null2String(rs.getString("nodeid")) ;
|
|
|
|
@ -632,8 +641,10 @@ public class SendPortalTodoUtil {
|
|
|
|
|
if("0".equals(resultCode)){
|
|
|
|
|
|
|
|
|
|
System.out.println(emailArray.toJSONString());
|
|
|
|
|
String notificationSubject = "";
|
|
|
|
|
String notificationContent = "" ;
|
|
|
|
|
|
|
|
|
|
String notificationSubject = "You have a new to-do list:"+requestname+",Please handle it in time";
|
|
|
|
|
String notificationContent = "You have a new to-do list:"+requestname+",Please handle it in time";
|
|
|
|
|
|
|
|
|
|
sendMailUtil.sendMail(requestid,emailArray.toJSONString(),notificationSubject,notificationContent);
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|