From 0fbddd5f623d9438def717fb8c72f0fd9b8daff7 Mon Sep 17 00:00:00 2001 From: dearlin <1261008090@qq.com> Date: Thu, 22 Feb 2024 16:33:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=8A=A0=E5=A4=96=E6=9D=A5=E4=BA=BA?= =?UTF-8?q?=E5=91=98=E9=83=A8=E9=97=A8=EF=BC=8C=E5=A4=96=E6=9D=A5=E4=BA=BA?= =?UTF-8?q?=E5=91=98=E5=B9=B6=E4=B8=94=E7=A6=81=E6=AD=A2=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=88=B0=E7=B3=BB=E7=BB=9F=E6=8F=90=E7=A4=BA=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zcloud/controller/system/LoginController.java | 3 +++ .../resources/mybatis/datasource/system/DepartmentMapper.xml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/main/java/com/zcloud/controller/system/LoginController.java b/src/main/java/com/zcloud/controller/system/LoginController.java index bc442a2..830d6a1 100644 --- a/src/main/java/com/zcloud/controller/system/LoginController.java +++ b/src/main/java/com/zcloud/controller/system/LoginController.java @@ -149,6 +149,9 @@ public class LoginController extends BaseController { PageData dpd = new PageData(); dpd.put("DEPARTMENT_ID", pd.getString("DEPARTMENT_ID")); dpd = departmentService.findById(dpd); + if (dpd.getString("FOREIGNPERSONNEL").equals("1")) { + return ReturnMap.error("账号密码不正确"); + } map.put("DEPARTMENT_NAME", dpd.getString("NAME")); map.put("DEPARTMENT_LEVEL", dpd.getString("LEVEL")); map.put("ISSUPERVISE", dpd.getString("ISSUPERVISE")); diff --git a/src/main/resources/mybatis/datasource/system/DepartmentMapper.xml b/src/main/resources/mybatis/datasource/system/DepartmentMapper.xml index 850a482..73cbab4 100644 --- a/src/main/resources/mybatis/datasource/system/DepartmentMapper.xml +++ b/src/main/resources/mybatis/datasource/system/DepartmentMapper.xml @@ -34,6 +34,7 @@ LEADER_CHARGE, STATE, checkedIds, + FOREIGNPERSONNEL, DJBM @@ -58,6 +59,7 @@ #{LEADER_CHARGE}, #{STATE}, #{checkedIds}, + #{FOREIGNPERSONNEL}, #{DJBM} @@ -100,6 +102,7 @@ LEADER_CHARGE = #{LEADER_CHARGE}, STATE = #{STATE}, checkedIds = #{checkedIds}, + FOREIGNPERSONNEL = #{FOREIGNPERSONNEL}, DJBM = #{DJBM} where ISDELETE = 0 and DEPARTMENT_ID = #{DEPARTMENT_ID}