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.conn.RecordSet;
|
||||||
import weaver.email.EmailEncoder;
|
import weaver.email.EmailEncoder;
|
||||||
import weaver.formmode.customjavacode.AbstractModeExpandJavaCodeNew;
|
import weaver.formmode.customjavacode.AbstractModeExpandJavaCodeNew;
|
||||||
import weaver.general.BaseBean;
|
|
||||||
import weaver.general.Util;
|
import weaver.general.Util;
|
||||||
import weaver.soa.workflow.request.MainTableInfo;
|
import weaver.soa.workflow.request.MainTableInfo;
|
||||||
import weaver.soa.workflow.request.Property;
|
import weaver.soa.workflow.request.Property;
|
||||||
|
|
@ -26,6 +25,7 @@ public class EmailUpdateExpand extends AbstractModeExpandJavaCodeNew {
|
||||||
@Override
|
@Override
|
||||||
public Map<String, String> doModeExpand(Map<String, Object> param) {
|
public Map<String, String> doModeExpand(Map<String, Object> param) {
|
||||||
Map<String, String> result = new HashMap<>();
|
Map<String, String> result = new HashMap<>();
|
||||||
|
RecordSet rs = new RecordSet();
|
||||||
try {
|
try {
|
||||||
RequestInfo requestInfo = (RequestInfo) param.get("RequestInfo");
|
RequestInfo requestInfo = (RequestInfo) param.get("RequestInfo");
|
||||||
if (requestInfo != null) {
|
if (requestInfo != null) {
|
||||||
|
|
@ -42,12 +42,11 @@ public class EmailUpdateExpand extends AbstractModeExpandJavaCodeNew {
|
||||||
}
|
}
|
||||||
String qydqpz = mainDataMap.get("qydqpz");
|
String qydqpz = mainDataMap.get("qydqpz");
|
||||||
// 如果是编辑操作、且当前配置未启用,不进行以下操作
|
// 如果是编辑操作、且当前配置未启用,不进行以下操作
|
||||||
if("save".equals(src) && "0".equals(qydqpz)){
|
if ("save".equals(src) && "0".equals(qydqpz)) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String sendProtocol = mainDataMap.get("send_protocol");
|
String sendProtocol = mainDataMap.get("send_protocol");
|
||||||
String sendProtocolStr = "";
|
String sendProtocolStr = "";
|
||||||
if (StringUtils.isNotBlank(sendProtocol)) {
|
if (StringUtils.isNotBlank(sendProtocol)) {
|
||||||
|
|
@ -88,12 +87,7 @@ public class EmailUpdateExpand extends AbstractModeExpandJavaCodeNew {
|
||||||
String ewsVersion = mainDataMap.get("ews_version");
|
String ewsVersion = mainDataMap.get("ews_version");
|
||||||
String subcompanyid = mainDataMap.get("subcompanyid");
|
String subcompanyid = mainDataMap.get("subcompanyid");
|
||||||
|
|
||||||
RecordSet rs = new RecordSet();
|
|
||||||
|
|
||||||
// 更新email_flocksendaccount表,指定subcompanyid的数据
|
// 更新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;
|
boolean flag;
|
||||||
rs.executeQuery("select * from email_flocksendaccount where subcompanyid = ?", subcompanyid);
|
rs.executeQuery("select * from email_flocksendaccount where subcompanyid = ?", subcompanyid);
|
||||||
String sql = "";
|
String sql = "";
|
||||||
|
|
@ -123,7 +117,7 @@ public class EmailUpdateExpand extends AbstractModeExpandJavaCodeNew {
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
new BaseBean().writeLog("招聘邮箱设置异常", e);
|
rs.writeLog("招聘邮箱设置异常", e);
|
||||||
result.put("errmsg", e.getMessage());
|
result.put("errmsg", e.getMessage());
|
||||||
result.put("flag", "false");
|
result.put("flag", "false");
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue