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