Commit 36ccdaf2 authored by huyuchen's avatar huyuchen

huych-入离职登记提交

parent 92edb454
......@@ -1018,7 +1018,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
public R<SysCspDeptVo> selectCspDeptByUserDeptId(SysCspDeptVo vo) {
YifuUser user = SecurityUtils.getUser();
SysCspDeptVo returnVo = userDeptPermissionService.selectCasDeptVo(vo.getUserId(),vo.getProjectId());
if (Common.isEmpty(returnVo)) {
if (Common.isNotNull(returnVo) && Common.isNotNull(returnVo.getDepartName()) && Common.isNotNull(returnVo.getDepartId())) {
vo.setDepartName(user.getDeptName());
vo.setDepartId(user.getDeptId());
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment