BUG-信息采集邮件标题、信息采集登录校验

This commit is contained in:
dxfeng 2024-05-15 09:11:59 +08:00
parent 7efbc212c5
commit 62f3aac561
1 changed files with 13 additions and 13 deletions

View File

@ -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;
}