入职流程完成

This commit is contained in:
2025-03-07 18:09:16 +08:00
parent f78b3dda14
commit 4a1009e02e
25 changed files with 296 additions and 515 deletions

View File

@@ -65,4 +65,8 @@ public interface SysRoleMapper extends BaseMapperPlus<SysRoleMapper, SysRole, Sy
* @return
*/
SysRole getCurrentRole(Long userId);
Long[] selectTempRoleByName();
}

View File

@@ -183,7 +183,7 @@ public interface ISysRoleService {
*
* @return
*/
Long[] selectRoleByName();
Long[] selectTempRoleByName();
SysRole getCurrentRole();

View File

@@ -442,8 +442,9 @@ public class SysRoleServiceImpl implements ISysRoleService {
}
@Override
public Long[] selectRoleByName() {
return new Long[0];
public Long[] selectTempRoleByName() {
return baseMapper.selectTempRoleByName();
}
@Override

View File

@@ -313,9 +313,11 @@ public class WfProcessServiceImpl extends FlowServiceFactory implements IWfProce
//获取部门信息(新增于2024年2月29日)
SysUser sysUser = sysUserService.selectUserById(userId);
SysDept sysDept = sysDeptService.selectDeptById(sysUser.getDeptId());
flowTask.setDeptName(sysDept.getDeptName());
if (sysUser.getDeptId()!=null){
SysDept sysDept = sysDeptService.selectDeptById(sysUser.getDeptId());
flowTask.setDeptName(sysDept.getDeptName());
}
// 流程变量
flowTask.setProcVars(task.getProcessVariables());