| | |
| | | package com.gkhy.exam.admin.controller.web; |
| | | |
| | | import com.gkhy.exam.common.annotation.Log; |
| | | import com.gkhy.exam.common.annotation.RepeatSubmit; |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.common.enums.BusinessType; |
| | | import com.gkhy.exam.system.domain.*; |
| | | import com.gkhy.exam.system.service.*; |
| | | import io.swagger.annotations.Api; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | | |
| | | @Api(tags = "企业基础信息管理") |
| | | @RestController |
| | |
| | | |
| | | /** |
| | | * 行业模版 |
| | | * @param companyId |
| | | * @param companyIndustryTemplate |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "行业模版(分页)") |
| | |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"), |
| | | }) |
| | | @GetMapping("/industryTemplate/list") |
| | | public CommonResult selectCompanyIndustryTemplateList(Integer companyId){ |
| | | return CommonResult.success(companyIndustryTemplateService.selectCompanyIndustryTemplateList(companyId)); |
| | | public CommonResult selectCompanyIndustryTemplateList(CompanyIndustryTemplate companyIndustryTemplate){ |
| | | return CommonResult.success(companyIndustryTemplateService.selectCompanyIndustryTemplateList(companyIndustryTemplate)); |
| | | } |
| | | |
| | | /** |
| | |
| | | return companyIndustryTemplateService.deletedCompanyIndustryTemplate(industryTemplateId); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "行业管理", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "导入行业") |
| | | @PostMapping("/industryTemplate/upload") |
| | | public CommonResult uploadQuestion(@RequestParam("file") MultipartFile file) throws IOException { |
| | | return companyIndustryTemplateService.uploadQuestion(file); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |