| | |
| | | import com.doumee.dao.business.model.Company; |
| | | import com.doumee.dao.system.dto.UpdateSystemMenuSortDTO; |
| | | import com.doumee.service.business.CompanyService; |
| | | import com.doumee.service.business.ERPSyncService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | |
| | | |
| | | @Autowired |
| | | private CompanyService companyService; |
| | | |
| | | @Autowired |
| | | private ERPSyncService erpSyncService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("新建") |
| | |
| | | */ |
| | | @ApiOperation("根据类型查询组织信息") |
| | | @GetMapping("/findCompanyTreePage") |
| | | // @RequiresPermissions("business:company:query") |
| | | @RequiresPermissions("business:company:query") |
| | | public ApiResponse<List<CompanyDTO>> findCompanyTreePage(Integer type){ |
| | | return ApiResponse.success(companyService.findCompanyTreePage(type)); |
| | | } |
| | |
| | | |
| | | @ApiOperation("部门信息同步") |
| | | @PostMapping("/sync") |
| | | // @RequiresPermissions("business:company:sync") |
| | | @RequiresPermissions("business:company:sync") |
| | | public ApiResponse sync(){ |
| | | //TODO 手动同步 部门信息 |
| | | erpSyncService.syncCompany(null); |
| | | return ApiResponse.success("同步成功"); |
| | | } |
| | | } |