修改接口:查询新用户(租户)和企业的所属的总公司列表
This commit is contained in:
parent
51b7745ad3
commit
d417d20c37
@ -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"),
|
||||
})
|
||||
|
||||
@ -893,7 +893,11 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
||||
} else if (Objects.equals(systemUser.getAccountType(), SystemUserAccountTypeEnum.PROJECT_ACCOUNT.getValue()) || Objects.equals(systemUser.getAccountType(), SystemUserAccountTypeEnum.PROJECT_SUB_ACCOUNT.getValue())) {
|
||||
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