| | |
| | | package com.gkhy.exam.admin.controller.web; |
| | | |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.system.domain.CompanyBasic; |
| | | import com.gkhy.exam.system.domain.CompanyCertificate; |
| | | import com.gkhy.exam.system.domain.CompanyQualityPolicy; |
| | | import com.gkhy.exam.system.domain.CompanySummary; |
| | | import com.gkhy.exam.system.service.CompanyBasicService; |
| | | import com.gkhy.exam.system.service.CompanyCertificateService; |
| | | import com.gkhy.exam.system.service.CompanyQualityPolicyService; |
| | | import com.gkhy.exam.system.service.CompanySummaryService; |
| | | import com.gkhy.exam.system.domain.*; |
| | | import com.gkhy.exam.system.service.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @Api(tags = "企业基础信息管理") |
| | |
| | | private CompanySummaryService companySummaryService; |
| | | @Autowired |
| | | private CompanyQualityPolicyService companyQualityPolicyService; |
| | | |
| | | @Autowired |
| | | private CompanyRosterService companyRosterService; |
| | | |
| | | @Autowired |
| | | private CompanyIndustryTemplateService companyIndustryTemplateService; |
| | | |
| | | |
| | | /** |
| | | * 企业基础信息列表 |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 企业花名册 |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "员工情况(分页)") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"), |
| | | }) |
| | | @GetMapping("/roster/list") |
| | | public CommonResult selectCompanyRosterList(Integer companyId){ |
| | | return CommonResult.success(companyRosterService.selectCompanyRosterList(companyId)); |
| | | } |
| | | |
| | | /** |
| | | * 企业花名册新增 |
| | | * @param companyRoster |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "员工情况新增") |
| | | @PostMapping("/roster/insert") |
| | | public CommonResult insertCompanyRoster(@RequestBody CompanyRoster companyRoster){ |
| | | return companyRosterService.insertCompanyRoster(companyRoster); |
| | | } |
| | | |
| | | /** |
| | | * 企业花名册修改 |
| | | * @param companyRoster |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "员工情况修改") |
| | | @PostMapping("/roster/update") |
| | | public CommonResult updateCompanyRoster(@RequestBody CompanyRoster companyRoster){ |
| | | return companyRosterService.updateCompanyRoster(companyRoster); |
| | | } |
| | | |
| | | /** |
| | | * 企业花名册删除 |
| | | * @param companyRosterId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "员工情况删除") |
| | | @GetMapping("/roster/deleted") |
| | | public CommonResult deletedCompanyRoster(@RequestParam("companyRosterId") Integer companyRosterId){ |
| | | return companyRosterService.deletedCompanyRoster(companyRosterId); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 行业模版 |
| | | * @param companyIndustryTemplate |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "行业模版(分页)") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"), |
| | | }) |
| | | @GetMapping("/industryTemplate/list") |
| | | public CommonResult selectCompanyIndustryTemplateList(CompanyIndustryTemplate companyIndustryTemplate){ |
| | | return CommonResult.success(companyIndustryTemplateService.selectCompanyIndustryTemplateList(companyIndustryTemplate)); |
| | | } |
| | | |
| | | /** |
| | | * 行业模版新增 |
| | | * @param companyRoster |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "行业模版新增") |
| | | @PostMapping("/industryTemplate/insert") |
| | | public CommonResult insertCompanyIndustryTemplate(@Validated @RequestBody CompanyIndustryTemplate companyRoster){ |
| | | return companyIndustryTemplateService.insertCompanyIndustryTemplate(companyRoster); |
| | | } |
| | | |
| | | /** |
| | | * 企业花名册修改 |
| | | * @param companyIndustryTemplate |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "行业模版修改") |
| | | @PostMapping("/industryTemplate/update") |
| | | public CommonResult updateCompanyIndustryTemplate(@Validated @RequestBody CompanyIndustryTemplate companyIndustryTemplate){ |
| | | return companyIndustryTemplateService.updateCompanyIndustryTemplate(companyIndustryTemplate); |
| | | } |
| | | |
| | | /** |
| | | * 行业模版删除 |
| | | * @param industryTemplateId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "行业模版删除") |
| | | @GetMapping("/industryTemplate/deleted") |
| | | public CommonResult deletedCompanyIndustryTemplate(@RequestParam("companyRosterId") Integer industryTemplateId){ |
| | | return companyIndustryTemplateService.deletedCompanyIndustryTemplate(industryTemplateId); |
| | | } |
| | | |
| | | |
| | | |