generated from dxfeng/secondev-chapanda-feishu
BUG-信息采集邮件标题、信息采集登录校验
This commit is contained in:
parent
7efbc212c5
commit
62f3aac561
|
|
@ -61,12 +61,12 @@ public class InductionManageServiceImpl extends Service implements InductionMana
|
|||
}
|
||||
|
||||
// 查询信息采集模板内容
|
||||
rs.executeQuery("select yjnr,mbmc from uf_jcl_yjtzmb where mblx = 3 and zt = 0");
|
||||
rs.executeQuery("select yjnr,yjzt from uf_jcl_yjtzmb where mblx = 3 and zt = 0");
|
||||
String yjnr = "";
|
||||
String mbmc = "";
|
||||
String yjzt = "";
|
||||
if (rs.next()) {
|
||||
yjnr = rs.getString("yjnr");
|
||||
mbmc = rs.getString("mbmc");
|
||||
yjzt = rs.getString("yjzt");
|
||||
}
|
||||
if (StringUtils.isBlank(yjnr)) {
|
||||
throw new CustomizeRunTimeException("未获取到信息采集邮件通知模板");
|
||||
|
|
@ -130,7 +130,7 @@ public class InductionManageServiceImpl extends Service implements InductionMana
|
|||
yjnr = yjnr.replace("{初始密码}", password);
|
||||
String msgContent = RecruitModeUtil.getReplaceContent(yjnr, fieldMapList, mainDataMap);
|
||||
// 发送邮件
|
||||
boolean sendEmail = RecruitMessageUtils.sendEmail(email, mbmc, msgContent);
|
||||
boolean sendEmail = RecruitMessageUtils.sendEmail(email, yjzt, msgContent);
|
||||
// 发送短信
|
||||
boolean sendSMS = RecruitMessageUtils.sendSMS(mobile, msgContent);
|
||||
|
||||
|
|
@ -185,9 +185,16 @@ public class InductionManageServiceImpl extends Service implements InductionMana
|
|||
HashMap<String, Object> map = new HashMap<>(2);
|
||||
String mobile = Util.null2String(param.get("mobile"));
|
||||
String pwd = Util.null2String(param.get("pwd"));
|
||||
rs.executeQuery("select id from uf_jcl_xxcj where sjh = ? and mm = ?", mobile, pwd);
|
||||
String xxcjId = "";
|
||||
if (rs.next()) {
|
||||
xxcjId = rs.getString("id");
|
||||
} else {
|
||||
throw new CustomizeRunTimeException("手机号或密码错误");
|
||||
}
|
||||
|
||||
// 校验当前链接的有效期
|
||||
rs.executeQuery("select * from uf_jcl_rzgl where sjhm = ? ", mobile);
|
||||
rs.executeQuery("select * from uf_jcl_rzgl where xxcjid = ? ", xxcjId);
|
||||
if (rs.next()) {
|
||||
// 当前关联入职已取消入职/已入职;点击提示当前链接已失效,且不可操作
|
||||
String entryStatus = rs.getString("rzzt");
|
||||
|
|
@ -201,14 +208,7 @@ public class InductionManageServiceImpl extends Service implements InductionMana
|
|||
throw new CustomizeRunTimeException("当前链接已失效");
|
||||
}
|
||||
}
|
||||
|
||||
rs.executeQuery("select id from uf_jcl_xxcj where sjh = ? and mm = ?", mobile, pwd);
|
||||
if (rs.next()) {
|
||||
map.put("id", Util.getIntValue(rs.getString("id")));
|
||||
} else {
|
||||
throw new CustomizeRunTimeException("手机号或密码错误");
|
||||
}
|
||||
|
||||
map.put("id", xxcjId);
|
||||
return map;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue