| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * @author 江蹄蹄 |
| | | * @date 2023/11/30 15:33 |
| | |
| | | @ApiOperation("【ERP】全量同步ERP组织接口") |
| | | @PostMapping("/getCompanies") |
| | | @CloudRequiredPermission("business:erpsync:company") |
| | | public ApiResponse getCompanies(@RequestBody OrgListRequest param) { |
| | | public ApiResponse getCompanies(@RequestBody OrgListRequest param,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | String result = erpSyncService.syncCompany(param); |
| | | return ApiResponse.success(result); |
| | | } |
| | |
| | | @ApiOperation("【ERP】全量同步ERP人员接口") |
| | | @PostMapping("/getUsers") |
| | | @CloudRequiredPermission("business:erpsync:users") |
| | | public ApiResponse getUsers(@RequestBody UserListRequest param) { |
| | | public ApiResponse getUsers(@RequestBody UserListRequest param,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | String result = erpSyncService.syncUsers(param); |
| | | return ApiResponse.success(result); |
| | | } |