Commit 9bbbea24 authored by diaoruifeng's avatar diaoruifeng

服务列表树功能最低级查询服务

parent 60bed0ab
......@@ -204,5 +204,10 @@ public class ApiBasicManagementController {
List<OcpApiGroup> apiTreeGroupDtos = apiBasicManagementService.apiBaseTreeOther(apiGroupCompanyCode,apiGroupPcode);
return ResponseVO.ok(apiTreeGroupDtos);
}
@ApiOperation("服务列表树最低级")
@GetMapping("/apiBaseTreeApiList")
public ResponseVO<List<OcpApiBase>> apiBaseTreeApiList(String apiGroupCompanyCode,String apiGroupPcode) {
List<OcpApiBase> apiTreeGroupDtos = apiBasicManagementService.apiBaseTreeApiList(apiGroupCompanyCode,apiGroupPcode);
return ResponseVO.ok(apiTreeGroupDtos);
}
}
......@@ -79,4 +79,12 @@ public interface ApiBasicManagementService extends IService<OcpApiBase> {
* @return
*/
QueryResponseResult getBaseByGroupCode(ApiBaseDto ApiBaseReq);
/**
* 服务分类暴露服务列表
* @param apiGroupCompanyCode
* @param apiGroupPcode
* @return
*/
List<OcpApiBase> apiBaseTreeApiList(String apiGroupCompanyCode, String apiGroupPcode);
}
......@@ -225,6 +225,19 @@ public class ApiBasicManagementServiceImpl extends ServiceImpl<ApiBasicManagemen
return queryResponseResult;
}
@Override
public List<OcpApiBase> apiBaseTreeApiList(String apiGroupCompanyCode, String apiGroupPcode) {
QueryWrapper qw = new QueryWrapper();
if (!StringUtils.isEmpty(apiGroupPcode)) {
qw.eq("api_group_code", apiGroupPcode);
}
if (!StringUtils.isEmpty(apiGroupCompanyCode)) {
qw.eq("owner_company_code", apiGroupCompanyCode);
}
return apiBasicManagementMapper.selectList(qw);
}
/**
* 分组权限分组使用in查询
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment