【登录】安眼统一认证
This commit is contained in:
+3
-3
@@ -171,7 +171,7 @@ public class LoginAnYanServiceImpl implements ILoginAnYanService {
|
|||||||
AnYanUserInfoResult.EmployeeUnitDTO employeeUnitDTO = anYanUserInfo.getEmployeeUnitDTO();
|
AnYanUserInfoResult.EmployeeUnitDTO employeeUnitDTO = anYanUserInfo.getEmployeeUnitDTO();
|
||||||
String departId = checkDepartAndUpdate(employeeUnitDTO);
|
String departId = checkDepartAndUpdate(employeeUnitDTO);
|
||||||
if (list.isEmpty()) {
|
if (list.isEmpty()) {
|
||||||
UserEmployee user = getUserEmployee(anYanUserInfo, password, employeeUnitDTO);
|
UserEmployee user = getUserEmployee(anYanUserInfo, employeeUnitDTO);
|
||||||
user.setPassword(password);
|
user.setPassword(password);
|
||||||
user.setOrgCode(departId);
|
user.setOrgCode(departId);
|
||||||
user.setPersonType("1");
|
user.setPersonType("1");
|
||||||
@@ -179,7 +179,7 @@ public class LoginAnYanServiceImpl implements ILoginAnYanService {
|
|||||||
healthUserEmployeeExService.saveAndUser(user);
|
healthUserEmployeeExService.saveAndUser(user);
|
||||||
} else if (list.size() == 1) {
|
} else if (list.size() == 1) {
|
||||||
SysUser sysUser = list.get(0);
|
SysUser sysUser = list.get(0);
|
||||||
UserEmployee user = getUserEmployee(anYanUserInfo, password, employeeUnitDTO);
|
UserEmployee user = getUserEmployee(anYanUserInfo, employeeUnitDTO);
|
||||||
HealthUserEmployeeEx extension = user.getExtension();
|
HealthUserEmployeeEx extension = user.getExtension();
|
||||||
extension.setId(sysUser.getId());
|
extension.setId(sysUser.getId());
|
||||||
user.setExtension(extension);
|
user.setExtension(extension);
|
||||||
@@ -200,7 +200,7 @@ public class LoginAnYanServiceImpl implements ILoginAnYanService {
|
|||||||
* @date 2025/10/27 11:29
|
* @date 2025/10/27 11:29
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
private static UserEmployee getUserEmployee(AnYanUserInfoResult anYanUserInfo, String password, AnYanUserInfoResult.EmployeeUnitDTO employeeUnitDTO) {
|
private static UserEmployee getUserEmployee(AnYanUserInfoResult anYanUserInfo, AnYanUserInfoResult.EmployeeUnitDTO employeeUnitDTO) {
|
||||||
HealthUserEmployeeEx healthUserEmployeeEx = new HealthUserEmployeeEx();
|
HealthUserEmployeeEx healthUserEmployeeEx = new HealthUserEmployeeEx();
|
||||||
healthUserEmployeeEx.setEmpSysno(employeeUnitDTO.getEmployeeNum());
|
healthUserEmployeeEx.setEmpSysno(employeeUnitDTO.getEmployeeNum());
|
||||||
UserEmployee user = new UserEmployee();
|
UserEmployee user = new UserEmployee();
|
||||||
|
|||||||
Reference in New Issue
Block a user