测试问题项修改

This commit is contained in:
csyue 2024-05-31 15:19:44 +08:00
parent 16dc57e902
commit d1c8638876
1 changed files with 3 additions and 0 deletions

View File

@ -316,6 +316,9 @@ public class SysUserServiceImpl implements ISysUserService {
SysDept sysDept = deptMapper.selectDeptById(deptId); SysDept sysDept = deptMapper.selectDeptById(deptId);
String ancestors = sysDept.getAncestors(); String ancestors = sysDept.getAncestors();
String[] split = ancestors.split(","); String[] split = ancestors.split(",");
if (deptId == 100){
user.setCompanyId(deptId);
}
if (split.length == 2) { if (split.length == 2) {
//表示属于分公司 //表示属于分公司
user.setCompanyId(sysDept.getDeptId()); user.setCompanyId(sysDept.getDeptId());