【安眼】用户信息同步
This commit is contained in:
+9
-10
@@ -414,16 +414,15 @@ public class LoginAnYanServiceImpl implements ILoginAnYanService {
|
|||||||
param.setEmployeeNum(workNo);
|
param.setEmployeeNum(workNo);
|
||||||
IPage<EmergencyContactVO> emergencyContactVOIPage = anYanClient.queryEmergencyContact(param);
|
IPage<EmergencyContactVO> emergencyContactVOIPage = anYanClient.queryEmergencyContact(param);
|
||||||
if (emergencyContactVOIPage != null && emergencyContactVOIPage.getRecords() != null && !emergencyContactVOIPage.getRecords().isEmpty()) {
|
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>()
|
healthUserEmployeeExService.update(new LambdaUpdateWrapper<HealthUserEmployeeEx>()
|
||||||
.eq(HealthUserEmployeeEx::getId, userId)
|
.eq(HealthUserEmployeeEx::getId, userId)
|
||||||
.set(StringUtils.isNotBlank(emergencyContactVO.getRelationEmpName()), HealthUserEmployeeEx::getCareLiaisonName, emergencyContactVO.getRelationEmpName())
|
.set(StringUtils.isNotBlank(emergencyContactVO.getRelationEmpName()), HealthUserEmployeeEx::getCareLiaisonName, emergencyContactVO.getRelationEmpName())
|
||||||
.set(StringUtils.isNotBlank(emergencyContactVO.getRelationEmpPostsText()), HealthUserEmployeeEx::getCareLiaisonJob, emergencyContactVO.getRelationEmpPostsText())
|
.set(StringUtils.isNotBlank(emergencyContactVO.getRelationEmpPostsText()), HealthUserEmployeeEx::getCareLiaisonJob, emergencyContactVO.getRelationEmpPostsText())
|
||||||
.set(StringUtils.isNotBlank(emergencyContactVO.getRelationEmpPhone()), HealthUserEmployeeEx::getCareLiaisonPhone, emergencyContactVO.getRelationEmpPhone())
|
.set(StringUtils.isNotBlank(emergencyContactVO.getRelationEmpPhone()), HealthUserEmployeeEx::getCareLiaisonPhone, emergencyContactVO.getRelationEmpPhone())
|
||||||
.set(StringUtils.isNotBlank(emergencyContactVO.getFirstAiderName()), HealthUserEmployeeEx::getLifeguardName, emergencyContactVO.getFirstAiderName())
|
.set(StringUtils.isNotBlank(emergencyContactVO.getFirstAiderName()), HealthUserEmployeeEx::getLifeguardName, emergencyContactVO.getFirstAiderName())
|
||||||
.set(StringUtils.isNotBlank(emergencyContactVO.getFirstAiderPhone()), HealthUserEmployeeEx::getLifeguardPhone, emergencyContactVO.getFirstAiderPhone())
|
.set(StringUtils.isNotBlank(emergencyContactVO.getFirstAiderPhone()), HealthUserEmployeeEx::getLifeguardPhone, emergencyContactVO.getFirstAiderPhone())
|
||||||
);
|
);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("更新员工其他信息异常,userId={}, workNo={}", userId, workNo, e);
|
log.error("更新员工其他信息异常,userId={}, workNo={}", userId, workNo, e);
|
||||||
|
|||||||
Reference in New Issue
Block a user