Commit 0cd2969f authored by huyuchen's avatar huyuchen

huych-入离职登记提交

parent ea020fa0
...@@ -471,17 +471,18 @@ public class EmployeeRegistrationServiceImpl extends ServiceImpl<EmployeeRegistr ...@@ -471,17 +471,18 @@ public class EmployeeRegistrationServiceImpl extends ServiceImpl<EmployeeRegistr
vo.setUserId(user.getId()); vo.setUserId(user.getId());
vo.setProjectId(selectVo.getId()); vo.setProjectId(selectVo.getId());
R<SysCspDeptVo> booleanR = upmsDaprUtils.selectCspDeptByUserDeptId(vo); R<SysCspDeptVo> booleanR = upmsDaprUtils.selectCspDeptByUserDeptId(vo);
if (Common.isEmpty(booleanR) && Common.isEmpty(booleanR.getData())) { log.info("SysCsp:" + booleanR);
insert.setRegistorDeptname(user.getDeptName()); if (Common.isNotNull(booleanR) && Common.isNotNull(booleanR.getData())) {
insert.setRegistorDeptid(user.getDeptId().toString());
insert.setEmpDeptid(user.getDeptId().toString());
insert.setEmpDeptname(user.getDeptName());
} else {
vo = booleanR.getData(); vo = booleanR.getData();
insert.setRegistorDeptname(vo.getDepartName()); insert.setRegistorDeptname(vo.getDepartName());
insert.setRegistorDeptid(vo.getDepartId().toString()); insert.setRegistorDeptid(vo.getDepartId().toString());
insert.setEmpDeptid(vo.getDepartId().toString()); insert.setEmpDeptid(vo.getDepartId().toString());
insert.setEmpDeptname(vo.getDepartName()); insert.setEmpDeptname(vo.getDepartName());
} else {
insert.setRegistorDeptname(user.getDeptName());
insert.setRegistorDeptid(user.getDeptId().toString());
insert.setEmpDeptid(user.getDeptId().toString());
insert.setEmpDeptname(user.getDeptName());
} }
insert.setRegistorUsername(user.getNickname()); insert.setRegistorUsername(user.getNickname());
insert.setRegistorPhone(user.getPhone()); insert.setRegistorPhone(user.getPhone());
......
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