1.0.31 通过发起人部门id获取分管副总

dev
yinq 1 month ago
parent 2b44842c0c
commit c7c01d37bc

@ -28,6 +28,14 @@ public interface RemoteDeptService {
*/
Long selectDeptLeaderById(Long deptId);
/**
* ID
*
* @param deptId ID
* @return ID
*/
Long selectDeptVicePresidentById(Long deptId);
/**
*
*

@ -55,6 +55,18 @@ public class RemoteDeptServiceImpl implements RemoteDeptService {
return vo.getLeader();
}
/**
* ID
*
* @param deptId ID
* @return ID
*/
@Override
public Long selectDeptVicePresidentById(Long deptId) {
SysDeptVo vo = deptService.selectDeptById(deptId);
return vo.getVicePresident();
}
/**
*
*

@ -35,4 +35,15 @@ public class SpelRuleComponent {
return leaderId;
}
/**
* id
*/
public Long selectDeptVicePresidentById(Long initiatorDeptId) {
Long vicePresidentId = deptService.selectDeptVicePresidentById(initiatorDeptId);
if (ObjectUtil.isNull(vicePresidentId)) {
throw new ServiceException("当前部门未设置分管副总,请联系管理员操作。");
}
return vicePresidentId;
}
}

Loading…
Cancel
Save