|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PreventRepeat | 
|---|
|  |  |  | @ApiOperation("创建财务公司") | 
|---|
|  |  |  | @PostMapping("/createFinanceCompany") | 
|---|
|  |  |  | @CloudRequiredPermission("business:company:create") | 
|---|
|  |  |  | public ApiResponse<Integer> createFinanceCompany(@RequestBody Company company, @RequestHeader(Constants.HEADER_USER_TOKEN) String token){ | 
|---|
|  |  |  | company.setLoginUserInfo(this.getLoginUser(token)); | 
|---|
|  |  |  | return ApiResponse.success(companyService.createFinanceCompany(company)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @PreventRepeat | 
|---|
|  |  |  | @ApiOperation("更新财务公司") | 
|---|
|  |  |  | @PostMapping("/updateFinanceCompany") | 
|---|
|  |  |  | @CloudRequiredPermission("business:company:update") | 
|---|
|  |  |  | public ApiResponse<Integer> updateFinanceCompany(@RequestBody Company company, @RequestHeader(Constants.HEADER_USER_TOKEN) String token){ | 
|---|
|  |  |  | company.setLoginUserInfo(this.getLoginUser(token)); | 
|---|
|  |  |  | return ApiResponse.success(companyService.updateFinanceCompany(company)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @PreventRepeat | 
|---|
|  |  |  | @ApiOperation("创建劳务公司") | 
|---|
|  |  |  | @PostMapping("/createLaborServices") | 
|---|
|  |  |  | @CloudRequiredPermission("business:company:create") | 
|---|
|  |  |  | 
|---|
|  |  |  | @PostMapping("/updateStatusById") | 
|---|
|  |  |  | @CloudRequiredPermission("business:company:update") | 
|---|
|  |  |  | public ApiResponse updateStatusById(@RequestBody Company company,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ | 
|---|
|  |  |  | company.setLoginUserInfo(getLoginUser(token)); | 
|---|
|  |  |  | companyService.updateStatusById(company); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|