| | |
| | | @Autowired |
| | | private SysCompanyService companyService; |
| | | |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system')") |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system','train:exam:company')") |
| | | @ApiOperation(value = "企业列表(分页)") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |
| | |
| | | return CommonResult.success(companyService.selectCompanyList(company)); |
| | | } |
| | | |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system')") |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system','train:exam:company')") |
| | | @ApiOperation(value = "根据公司id获取公司信息") |
| | | @GetMapping(value = { "/{companyId}" }) |
| | | public CommonResult getCompanyInfo(@PathVariable(value = "companyId", required = true) Long companyId) |
| | |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system')") |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system','train:exam:company')") |
| | | @Log(title = "企业管理", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "新增企业") |
| | | @PostMapping |
| | |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system')") |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system','train:exam:company')") |
| | | @Log(title = "企业管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "编辑企业") |
| | | @PutMapping |
| | |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system')") |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system','train:exam:company')") |
| | | @Log(title = "企业管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "删除企业") |
| | | @DeleteMapping(value = { "/{companyId}" }) |
| | |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system')") |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system','train:exam:company')") |
| | | @Log(title = "企业管理", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "企业分配课时") |
| | | @ApiImplicitParams({ |
| | |
| | | return CommonResult.success(); |
| | | } |
| | | |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system')") |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system','train:exam:company')") |
| | | @ApiOperation(value = "校验公司名称是否唯一") |
| | | @PostMapping("/checkNameUnique") |
| | | public CommonResult checkNameUnique(@RequestBody SysCompany company) |