From 62f3aac561bc51e36ee36d1494b7ad15c9f7f526 Mon Sep 17 00:00:00 2001 From: dxfeng Date: Wed, 15 May 2024 09:11:59 +0800 Subject: [PATCH] =?UTF-8?q?BUG-=E4=BF=A1=E6=81=AF=E9=87=87=E9=9B=86?= =?UTF-8?q?=E9=82=AE=E4=BB=B6=E6=A0=87=E9=A2=98=E3=80=81=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=87=87=E9=9B=86=E7=99=BB=E5=BD=95=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/InductionManageServiceImpl.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/com/engine/recruit/service/impl/InductionManageServiceImpl.java b/src/com/engine/recruit/service/impl/InductionManageServiceImpl.java index 7824b0f..c2dd11a 100644 --- a/src/com/engine/recruit/service/impl/InductionManageServiceImpl.java +++ b/src/com/engine/recruit/service/impl/InductionManageServiceImpl.java @@ -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 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; }