Merge remote-tracking branch 'origin/main'

feature-LeeD-20221025
WangJie 3 years ago
commit 3c03a68f26

@ -138,8 +138,10 @@ public class SendPortalTodoUtil {
if("0".equals(resultCode)){ if("0".equals(resultCode)){
System.out.println(emailArray.toJSONString()); 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); sendMailUtil.sendMail(requestId,emailArray.toJSONString(),notificationSubject,notificationContent);
}else{ }else{
@ -283,8 +285,10 @@ public class SendPortalTodoUtil {
if("0".equals(resultCode)){ if("0".equals(resultCode)){
System.out.println(emailArray.toJSONString()); 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); sendMailUtil.sendMail(requestid,emailArray.toJSONString(),notificationSubject,notificationContent);
}else{ }else{
sendPortalErrorUtil.doCreateSendPortalTodoErrorInfo(); sendPortalErrorUtil.doCreateSendPortalTodoErrorInfo();
@ -320,6 +324,7 @@ public class SendPortalTodoUtil {
String terminal = "1" ; String terminal = "1" ;
String taskType = "0"; String taskType = "0";
String objectId = "" ; String objectId = "" ;
String requestname = "" ;
JSONArray emailArray = new JSONArray(); JSONArray emailArray = new JSONArray();
Pattern regex = Pattern.compile(EMAIL_REGEX_DEFAULT); Pattern regex = Pattern.compile(EMAIL_REGEX_DEFAULT);
@ -363,6 +368,7 @@ public class SendPortalTodoUtil {
rs.executeQuery(sql); rs.executeQuery(sql);
if (rs.next()){ if (rs.next()){
String title = Util.null2String(rs.getString("requestname")) ; String title = Util.null2String(rs.getString("requestname")) ;
requestname = title;
String creator = Util.null2String(rs.getString("loginid")) ; String creator = Util.null2String(rs.getString("loginid")) ;
String taskCode = Util.null2String(rs.getString("taskcode")) ; String taskCode = Util.null2String(rs.getString("taskcode")) ;
String nodeId = Util.null2String(rs.getString("nodeid")) ; String nodeId = Util.null2String(rs.getString("nodeid")) ;
@ -417,6 +423,7 @@ public class SendPortalTodoUtil {
if (rs.next()){ if (rs.next()){
String title = Util.null2String(rs.getString("requestname")) ; String title = Util.null2String(rs.getString("requestname")) ;
requestname = title;
String creator = Util.null2String(rs.getString("loginid")) ; String creator = Util.null2String(rs.getString("loginid")) ;
String taskCode = Util.null2String(rs.getString("taskcode")) ; String taskCode = Util.null2String(rs.getString("taskcode")) ;
String nodeId = Util.null2String(rs.getString("nodeid")) ; String nodeId = Util.null2String(rs.getString("nodeid")) ;
@ -496,8 +503,8 @@ public class SendPortalTodoUtil {
if("0".equals(resultCode)){ if("0".equals(resultCode)){
System.out.println(emailArray.toJSONString()); System.out.println(emailArray.toJSONString());
String notificationSubject = ""; String notificationSubject = "You have a new to-do list:"+requestname+",Please handle it in time";
String notificationContent = "" ; String notificationContent = "You have a new to-do list:"+requestname+",Please handle it in time";
sendMailUtil.sendMail(requestid,emailArray.toJSONString(),notificationSubject,notificationContent); sendMailUtil.sendMail(requestid,emailArray.toJSONString(),notificationSubject,notificationContent);
}else{ }else{
@ -537,6 +544,7 @@ public class SendPortalTodoUtil {
String objectAction = "0" ; String objectAction = "0" ;
String objectType = "0"; String objectType = "0";
String objectId = "" ; String objectId = "" ;
String requestname = "";
try { try {
String actionType = "2" ; String actionType = "2" ;
@ -555,6 +563,7 @@ public class SendPortalTodoUtil {
if (rs.next()){ if (rs.next()){
String title = Util.null2String(rs.getString("requestname")) ; String title = Util.null2String(rs.getString("requestname")) ;
requestname = title ;
String creator = Util.null2String(rs.getString("loginid")) ; String creator = Util.null2String(rs.getString("loginid")) ;
String taskCode = Util.null2String(rs.getString("taskcode")) ; String taskCode = Util.null2String(rs.getString("taskcode")) ;
String nodeId = Util.null2String(rs.getString("nodeid")) ; String nodeId = Util.null2String(rs.getString("nodeid")) ;
@ -638,8 +647,10 @@ public class SendPortalTodoUtil {
if("0".equals(resultCode)){ if("0".equals(resultCode)){
System.out.println(emailArray.toJSONString()); 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); sendMailUtil.sendMail(requestid,emailArray.toJSONString(),notificationSubject,notificationContent);
}else{ }else{

@ -10,7 +10,7 @@ public class PropBean {
public static BaseBean bb = new BaseBean(); public static BaseBean bb = new BaseBean();
public static String active = Util.null2String(bb.getPropValue("developProp","active")); public static String active = Util.null2String(bb.getPropValue("developProp","active"));
public static String getPropName(String pkey) public static String getPropValue(String pkey)
{ {
if(StringUtils.isEmpty(active)){ if(StringUtils.isEmpty(active)){
return ""; return "";

Loading…
Cancel
Save