| | |
| | | package com.gkhy.exam.admin.controller.web; |
| | | |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.system.domain.CompanyIndustryTemplate; |
| | | import com.gkhy.exam.system.domain.StandardizedQuality; |
| | | import com.gkhy.exam.system.domain.StandardizedTemplate; |
| | | import com.gkhy.exam.system.domain.*; |
| | | import com.gkhy.exam.system.service.QualitySystemPlanService; |
| | | import com.gkhy.exam.system.service.StandardizedTemplateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | |
| | | @Autowired |
| | | private StandardizedTemplateService standardizedTemplateService; |
| | | |
| | | @Autowired |
| | | private QualitySystemPlanService qualitySystemPlanService; |
| | | |
| | | /** |
| | | * 行业模版 |
| | |
| | | public CommonResult standardizedQualityDataInfo(@RequestParam("companyId") Integer companyId){ |
| | | return standardizedTemplateService.getStandardizedQualityByCompanyId(companyId); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 质量体系策划 |
| | | * @param qualitySystemPlan |
| | | * @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("/list") |
| | | public CommonResult listQualitySystemPlan(QualitySystemPlan qualitySystemPlan){ |
| | | return CommonResult.success(qualitySystemPlanService.selectQualitySystemPlanList(qualitySystemPlan)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 质量体系策划新增 |
| | | * @param qualitySystemPlan |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "质量体系策划新增") |
| | | @PostMapping("/insert") |
| | | public CommonResult insertQualitySystemPlan(@RequestBody QualitySystemPlan qualitySystemPlan){ |
| | | return qualitySystemPlanService.insertQualitySystemPlan(qualitySystemPlan); |
| | | } |
| | | |
| | | /** |
| | | * 质量体系策划修改 |
| | | * @param qualitySystemPlan |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "质量体系策划修改") |
| | | @PostMapping("/update") |
| | | public CommonResult updateQualitySystemPlan(@RequestBody QualitySystemPlan qualitySystemPlan){ |
| | | return qualitySystemPlanService.updateQualitySystemPlan(qualitySystemPlan); |
| | | } |
| | | |
| | | /** |
| | | * 质量体系策划删除 |
| | | * @param planId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "质量体系策划删除") |
| | | @GetMapping("/deleted") |
| | | public CommonResult deletedQualitySystemPlan(@RequestParam("planId") Integer planId){ |
| | | return qualitySystemPlanService.deletedQualitySystemPlan(planId); |
| | | } |
| | | } |