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}