|  |  |  | 
|---|
|  |  |  | companyService.startSignAuth(company.getId()); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("根据ID禁用启用") | 
|---|
|  |  |  | @PostMapping("/updateStatus") | 
|---|
|  |  |  | @RequiresPermissions("business:company:update") | 
|---|
|  |  |  | public ApiResponse updateStatus(@RequestBody Company company) { | 
|---|
|  |  |  | companyService.updateStatus(company); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("企业更换手机号") | 
|---|
|  |  |  | @PostMapping("/updatePhone") | 
|---|
|  |  |  | @RequiresPermissions("business:company:update") | 
|---|
|  |  |  | public ApiResponse updatePhone(@RequestBody Company company) { | 
|---|
|  |  |  | companyService.updatePhone(company); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("根据ID电子签认证企业信息") | 
|---|
|  |  |  | @PostMapping("/startSignAuth/{id}") | 
|---|
|  |  |  | @RequiresPermissions("business:company:update") | 
|---|
|  |  |  | public ApiResponse startSignAuth(@PathVariable Integer id) { | 
|---|
|  |  |  | companyService.startSignAuth(id); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("分页查询") | 
|---|
|  |  |  | @PostMapping("/page") | 
|---|
|  |  |  | @RequiresPermissions("business:company:query") | 
|---|
|  |  |  | public ApiResponse<PageData<Company>> findPage (@RequestBody PageWrap<Company> pageWrap) { | 
|---|
|  |  |  | //权限范围内 | 
|---|
|  |  |  | return ApiResponse.success(companyService.findPage(pageWrap)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("查询全部数据(账号分配企业使用)") | 
|---|
|  |  |  | @PostMapping("/pageAll") | 
|---|
|  |  |  | @RequiresPermissions("business:companypermission:create") | 
|---|
|  |  |  | public ApiResponse<PageData<Company>> findPageAll (@RequestBody PageWrap<Company> pageWrap) { | 
|---|
|  |  |  | pageWrap.getModel().setQueryFlag(Constants.ONE);//查询全部 | 
|---|
|  |  |  | return ApiResponse.success(companyService.findPage(pageWrap)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|