| | |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(companyService.findById(id)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param pageWrap 分页对象 |
| | | * @return PageData<Company> |
| | | */ |
| | | @ApiOperation("平台查询企业信息-分页查询") |
| | | @PostMapping("/findPlatformPage") |
| | | // @RequiresPermissions("company:company:query") |
| | | public ApiResponse<PageData<Company>> findPlatformPage(@RequestBody PageWrap<Company> pageWrap){ |
| | | return ApiResponse.success(companyService.findPlatformPage(pageWrap)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 主键查询 |
| | | * |
| | | * @param companyId 主键 |
| | | * @return Company |
| | | */ |
| | | @ApiOperation("根据企业企业id 查询企业用户") |
| | | @PostMapping("/findPlatformById") |
| | | @RequiresPermissions("company:company:query") |
| | | public ApiResponse<Company> findPlatformById(@RequestParam Integer companyId){ |
| | | return ApiResponse.success(companyService.findPlatformById(companyId)); |
| | | } |
| | | } |