generated from dxfeng/secondev-chapanda-feishu
#3193161 发送offer邮件的邮箱配置
This commit is contained in:
parent
6365b2f717
commit
5bb332fbce
|
|
@ -8,7 +8,6 @@ import org.apache.commons.lang3.StringUtils;
|
|||
import weaver.conn.RecordSet;
|
||||
import weaver.email.EmailEncoder;
|
||||
import weaver.formmode.customjavacode.AbstractModeExpandJavaCodeNew;
|
||||
import weaver.general.BaseBean;
|
||||
import weaver.general.Util;
|
||||
import weaver.soa.workflow.request.MainTableInfo;
|
||||
import weaver.soa.workflow.request.Property;
|
||||
|
|
@ -26,6 +25,7 @@ public class EmailUpdateExpand extends AbstractModeExpandJavaCodeNew {
|
|||
@Override
|
||||
public Map<String, String> doModeExpand(Map<String, Object> param) {
|
||||
Map<String, String> result = new HashMap<>();
|
||||
RecordSet rs = new RecordSet();
|
||||
try {
|
||||
RequestInfo requestInfo = (RequestInfo) param.get("RequestInfo");
|
||||
if (requestInfo != null) {
|
||||
|
|
@ -47,7 +47,6 @@ public class EmailUpdateExpand extends AbstractModeExpandJavaCodeNew {
|
|||
}
|
||||
|
||||
|
||||
|
||||
String sendProtocol = mainDataMap.get("send_protocol");
|
||||
String sendProtocolStr = "";
|
||||
if (StringUtils.isNotBlank(sendProtocol)) {
|
||||
|
|
@ -88,12 +87,7 @@ public class EmailUpdateExpand extends AbstractModeExpandJavaCodeNew {
|
|||
String ewsVersion = mainDataMap.get("ews_version");
|
||||
String subcompanyid = mainDataMap.get("subcompanyid");
|
||||
|
||||
RecordSet rs = new RecordSet();
|
||||
|
||||
// 更新email_flocksendaccount表,指定subcompanyid的数据
|
||||
//String sql = "insert into email_flocksendaccount (send_protocol, smtp_server, send_needssl, smtp_serverport, isstarttls, needcheck, accountname, accountmailaddress," +
|
||||
// " accountid, accountpassword, ews_service_url, ews_domain, ews_version,subcompanyid) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
|
||||
//boolean flag = rs.executeUpdate(sql, sendProtocol, smtpServer, sendNeedssl, smtpServerPort, isstarttls, needCheck, accountName, accountMailAddress, accountId, accountPasswordStr, ewsServiceUrl, ewsDomain, ewsVersion, subcompanyid);
|
||||
boolean flag;
|
||||
rs.executeQuery("select * from email_flocksendaccount where subcompanyid = ?", subcompanyid);
|
||||
String sql = "";
|
||||
|
|
@ -123,7 +117,7 @@ public class EmailUpdateExpand extends AbstractModeExpandJavaCodeNew {
|
|||
}
|
||||
return result;
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog("招聘邮箱设置异常", e);
|
||||
rs.writeLog("招聘邮箱设置异常", e);
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Reference in New Issue