【安眼】用户信息同步

This commit is contained in:
2025-12-02 18:09:07 +08:00
parent 430817655a
commit a4a0265a82
@@ -414,7 +414,7 @@ public class LoginAnYanServiceImpl implements ILoginAnYanService {
param.setEmployeeNum(workNo);
IPage<EmergencyContactVO> emergencyContactVOIPage = anYanClient.queryEmergencyContact(param);
if (emergencyContactVOIPage != null && emergencyContactVOIPage.getRecords() != null && !emergencyContactVOIPage.getRecords().isEmpty()) {
for (EmergencyContactVO emergencyContactVO : emergencyContactVOIPage.getRecords()) {
EmergencyContactVO emergencyContactVO = emergencyContactVOIPage.getRecords().get(0);
healthUserEmployeeExService.update(new LambdaUpdateWrapper<HealthUserEmployeeEx>()
.eq(HealthUserEmployeeEx::getId, userId)
.set(StringUtils.isNotBlank(emergencyContactVO.getRelationEmpName()), HealthUserEmployeeEx::getCareLiaisonName, emergencyContactVO.getRelationEmpName())
@@ -424,7 +424,6 @@ public class LoginAnYanServiceImpl implements ILoginAnYanService {
.set(StringUtils.isNotBlank(emergencyContactVO.getFirstAiderPhone()), HealthUserEmployeeEx::getLifeguardPhone, emergencyContactVO.getFirstAiderPhone())
);
}
}
} catch (Exception e) {
log.error("更新员工其他信息异常,userId={}, workNo={}", userId, workNo, e);
}