| | |
| | | * @param pageWrap 分页对象 |
| | | * @return PageData<Company> |
| | | */ |
| | | @ApiOperation("分页查询") |
| | | @ApiOperation("企业用户分页查询") |
| | | @PostMapping("/page") |
| | | @RequiresPermissions("company:company:query") |
| | | public ApiResponse<PageData<CompanyUserDTO>> findPage(PageWrap<CompanyUserQueryDTO> pageWrap){ |
| | | @RequiresPermissions("business:companyUser:query") |
| | | public ApiResponse<PageData<CompanyUserDTO>> findPage(@RequestBody PageWrap<CompanyUserQueryDTO> pageWrap){ |
| | | return ApiResponse.success(companyUserService.findPage(pageWrap)); |
| | | } |
| | | |
| | |
| | | * @param userId 实体对象 |
| | | * @return Company |
| | | */ |
| | | @ApiOperation("分页查询") |
| | | @ApiOperation("根据企业用户ID") |
| | | @PostMapping("/findByUserId") |
| | | @RequiresPermissions("company:company:query") |
| | | @RequiresPermissions("business:companyUser:query") |
| | | public ApiResponse<CompanyUserDTO> findByUserId(@RequestParam("userId") Integer userId){ |
| | | |
| | | CompanyUserDTO company = new CompanyUserDTO(); |
| | |
| | | * @param companyId 实体对象 |
| | | * @return List<Company> |
| | | */ |
| | | @ApiOperation("分页查询") |
| | | @ApiOperation("根据企业查询") |
| | | @GetMapping("/findListByCompanyID") |
| | | @RequiresPermissions("company:company:query") |
| | | @RequiresPermissions("business:companyUser:query") |
| | | public ApiResponse<List<CompanyUserDTO>> findListByCompanyID(@RequestParam("companyId") Integer companyId){ |
| | | CompanyUserDTO company = new CompanyUserDTO(); |
| | | company.setCompanyId(companyId); |