修改接口:查询新用户(租户)和企业的所属的总公司列表
This commit is contained in:
parent
b70b990094
commit
c19ce04ea2
@ -305,7 +305,7 @@ public class CompanyController {
|
||||
return Result.success(companyService.getTenantOrgTreeList(paramMap));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "查询新用户(租户)的所属的总公司列表", notes = "查询新用户(租户)的所属的总公司列表", httpMethod = "POST")
|
||||
@ApiOperation(value = "查询新用户(租户)和企业的所属的总公司列表", notes = "查询新用户(租户)和企业的所属的总公司列表", httpMethod = "POST")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户id", paramType = "body", required = true, dataType = "String"),
|
||||
})
|
||||
|
||||
@ -875,7 +875,11 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
||||
} else if (Objects.equals(systemUser.getAccountType(), 5) || Objects.equals(systemUser.getAccountType(), 6)) {
|
||||
return companyMapper.getMyHeadquarterCompanyListForProject(paramMap);
|
||||
} else {
|
||||
throw new OpenAlertException("只有新用户和供应商和项目账号和项目子账号有效");
|
||||
//企业
|
||||
Company company = companyMapper.selectOne(new LambdaQueryWrapper<Company>()
|
||||
.eq(Company::getCompanySn, systemUser.getSn()));
|
||||
return companyMapper.selectList(new LambdaQueryWrapper<Company>()
|
||||
.eq(Company::getCompanySn, company.getHeadquartersSn()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user