forked from integrated_whb/integrated_whb
新加外来人员部门,外来人员并且禁止登录到系统提示账号密码不正确
parent
9b40b93f37
commit
0fbddd5f62
|
@ -149,6 +149,9 @@ public class LoginController extends BaseController {
|
||||||
PageData dpd = new PageData();
|
PageData dpd = new PageData();
|
||||||
dpd.put("DEPARTMENT_ID", pd.getString("DEPARTMENT_ID"));
|
dpd.put("DEPARTMENT_ID", pd.getString("DEPARTMENT_ID"));
|
||||||
dpd = departmentService.findById(dpd);
|
dpd = departmentService.findById(dpd);
|
||||||
|
if (dpd.getString("FOREIGNPERSONNEL").equals("1")) {
|
||||||
|
return ReturnMap.error("账号密码不正确");
|
||||||
|
}
|
||||||
map.put("DEPARTMENT_NAME", dpd.getString("NAME"));
|
map.put("DEPARTMENT_NAME", dpd.getString("NAME"));
|
||||||
map.put("DEPARTMENT_LEVEL", dpd.getString("LEVEL"));
|
map.put("DEPARTMENT_LEVEL", dpd.getString("LEVEL"));
|
||||||
map.put("ISSUPERVISE", dpd.getString("ISSUPERVISE"));
|
map.put("ISSUPERVISE", dpd.getString("ISSUPERVISE"));
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
LEADER_CHARGE,
|
LEADER_CHARGE,
|
||||||
STATE,
|
STATE,
|
||||||
checkedIds,
|
checkedIds,
|
||||||
|
FOREIGNPERSONNEL,
|
||||||
DJBM
|
DJBM
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
@ -58,6 +59,7 @@
|
||||||
#{LEADER_CHARGE},
|
#{LEADER_CHARGE},
|
||||||
#{STATE},
|
#{STATE},
|
||||||
#{checkedIds},
|
#{checkedIds},
|
||||||
|
#{FOREIGNPERSONNEL},
|
||||||
#{DJBM}
|
#{DJBM}
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
@ -100,6 +102,7 @@
|
||||||
LEADER_CHARGE = #{LEADER_CHARGE},
|
LEADER_CHARGE = #{LEADER_CHARGE},
|
||||||
STATE = #{STATE},
|
STATE = #{STATE},
|
||||||
checkedIds = #{checkedIds},
|
checkedIds = #{checkedIds},
|
||||||
|
FOREIGNPERSONNEL = #{FOREIGNPERSONNEL},
|
||||||
DJBM = #{DJBM}
|
DJBM = #{DJBM}
|
||||||
where ISDELETE = 0 and
|
where ISDELETE = 0 and
|
||||||
DEPARTMENT_ID = #{DEPARTMENT_ID}
|
DEPARTMENT_ID = #{DEPARTMENT_ID}
|
||||||
|
|
Loading…
Reference in New Issue