修改员工变更后没有修改对应账号信息的问题

This commit is contained in:
yangjun 2026-01-21 08:56:43 +08:00
parent 4c68617fcd
commit 212b3e51fa
1 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.nu.dto.EmployeesApplyMQDto;
import com.nu.entity.SysUserEntity;
import com.nu.modules.employeesInfo.entity.BizEmployeesInfo;
import com.nu.modules.employeesInfo.service.IBizEmployeesInfoService;
import com.nu.modules.employeesapply.entity.EmployeesApply;
@ -184,6 +185,13 @@ public class EmployeesApplyServiceImpl extends ServiceImpl<EmployeesApplyMapper,
eInfo.setModifyStatus("2");
employeesInfoService.updateById(eInfo);
//资源图片是在申请变更接收的mq中拉去的 这里不需要重复拉取了
SysUserEntity sysUser =sysUserAPI.getOne(employeesApply.getEmployeeId());
sysUser.setUsername(employeesApply.getTel());
sysUser.setRealname(employeesApply.getName());
sysUserAPI.updateById(sysUser);
}
//信息变更审批不通过
if ("modifyFail".equals(employeesApply.getStatus())) {