|
|
@ -69,7 +69,12 @@ public class AppEnfLoginController extends LoginController { |
|
|
return R.fail("用户名或密码错误"); |
|
|
return R.fail("用户名或密码错误"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 6. 查询部门信息
|
|
|
// 6. 检查执法证件号是否为空
|
|
|
|
|
|
if (user.getLawCertificateNum() == null || user.getLawCertificateNum().isBlank()) { |
|
|
|
|
|
return R.fail("该用户不是执法人员,无法登录执法端"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 7. 查询部门信息
|
|
|
String deptName = ""; |
|
|
String deptName = ""; |
|
|
if (user.getDeptId() != null && !user.getDeptId().isBlank()) { |
|
|
if (user.getDeptId() != null && !user.getDeptId().isBlank()) { |
|
|
SysDeptVo dept = sysDeptService.selectDeptById(user.getDeptId()); |
|
|
SysDeptVo dept = sysDeptService.selectDeptById(user.getDeptId()); |
|
|
|