| | |
| | | package com.gkhy.exam.admin.controller.web; |
| | | |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.system.domain.CompanyQualityPolicy; |
| | | import com.gkhy.exam.system.domain.Quality; |
| | | import com.gkhy.exam.system.domain.QualityAccomplish; |
| | | import com.gkhy.exam.system.domain.QualityDecompose; |
| | | import com.gkhy.exam.system.domain.req.DecomposeTargetReq; |
| | | import com.gkhy.exam.system.domain.req.QualityReq; |
| | | import com.gkhy.exam.system.domain.req.QualityTargetReq; |
| | | import com.gkhy.exam.system.service.QualityAccomplishService; |
| | | import com.gkhy.exam.system.service.QualityDecomposeService; |
| | | import com.gkhy.exam.system.service.QualityService; |
| | | import com.gkhy.exam.system.service.QualityTargetService; |
| | | import com.gkhy.exam.system.domain.*; |
| | | import com.gkhy.exam.system.domain.req.*; |
| | | import com.gkhy.exam.system.service.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | |
| | | |
| | | @Autowired |
| | | private QualityDecomposeService qualityDecomposeService; |
| | | |
| | | @Autowired |
| | | private CatalogueService catalogueService; |
| | | |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 质量管理体系运行列表 |
| | | * @param catalogueReq |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "质量管理体系运行列表") |
| | | @GetMapping("/catalogue/list") |
| | | public CommonResult listCatalogue(CatalogueReq catalogueReq){ |
| | | return CommonResult.success(catalogueService.selectCatalogueList(catalogueReq)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 质量管理体系运行新增 |
| | | * @param catalogue |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "质量管理体系运行新增") |
| | | @PostMapping("/catalogue/insert") |
| | | public CommonResult insertCatalogue(@RequestBody Catalogue catalogue){ |
| | | return catalogueService.insertCatalogue(catalogue); |
| | | } |
| | | |
| | | /** |
| | | * 质量管理体系运行修改 |
| | | * @param catalogue |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "质量管理体系运行修改") |
| | | @PostMapping("/catalogue/update") |
| | | public CommonResult updateCatalogue(@RequestBody Catalogue catalogue){ |
| | | return catalogueService.updateCatalogue(catalogue); |
| | | } |
| | | |
| | | /** |
| | | * 质量管理体系运行删除 |
| | | * @param catalogueId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "质量管理体系运行删除") |
| | | @GetMapping("/catalogue/deleted") |
| | | public CommonResult deletedCatalogue(@RequestParam("catalogueId") Integer catalogueId){ |
| | | return catalogueService.deletedCatalogue(catalogueId); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 目录数据列表 |
| | | * @param catalogueReq |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "目录数据列表") |
| | | @GetMapping("/catalogueData/list") |
| | | public CommonResult listCatalogueData(CatalogueReq catalogueReq){ |
| | | return CommonResult.success(catalogueService.selectCatalogueDataList(catalogueReq)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 目录数据新增 |
| | | * @param catalogue |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "目录数据新增") |
| | | @PostMapping("/catalogueData/insert") |
| | | public CommonResult insertCatalogueData(@RequestBody CatalogueDataReq catalogue){ |
| | | return catalogueService.insertCatalogueData(catalogue); |
| | | } |
| | | |
| | | /** |
| | | * 目录数据修改 |
| | | * @param catalogue |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "目录数据修改") |
| | | @PostMapping("/catalogueData/update") |
| | | public CommonResult updateCatalogueData(@RequestBody CatalogueDataReq catalogue){ |
| | | return catalogueService.updateCatalogueData(catalogue); |
| | | } |
| | | |
| | | /** |
| | | * 目录数据删除 |
| | | * @param catalogueDataId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "目录数据删除") |
| | | @GetMapping("/catalogueData/deleted") |
| | | public CommonResult deletedCatalogueData(@RequestParam("catalogueDataId") Integer catalogueDataId){ |
| | | return catalogueService.deletedCatalogueData(catalogueDataId); |
| | | } |
| | | // |
| | | // /** |
| | | // * 目录数据文件列表 |
| | | // * @param catalogueReq |
| | | // * @return |
| | | // */ |
| | | // @ApiOperation(value = "目录数据文件列表") |
| | | // @GetMapping("/catalogueData/list") |
| | | // public CommonResult listCatalogueDataFile(CatalogueReq catalogueReq){ |
| | | // return CommonResult.success(catalogueService.selectCatalogueDataList(catalogueReq)); |
| | | // } |
| | | |
| | | |
| | | /** |
| | | * 目录数据文件新增 |
| | | * @param catalogueDataFile |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "目录数据文件新增") |
| | | @PostMapping("/catalogueDataFile/insert") |
| | | public CommonResult insertCatalogueDataFile(@RequestBody CatalogueDataFile catalogueDataFile){ |
| | | return catalogueService.insertCatalogueDataFile(catalogueDataFile); |
| | | } |
| | | |
| | | /** |
| | | * 目录数据文件修改 |
| | | * @param catalogueDataFile |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "目录数据文件修改") |
| | | @PostMapping("/catalogueDataFile/update") |
| | | public CommonResult updateCatalogueDataFile(@RequestBody CatalogueDataFile catalogueDataFile){ |
| | | return catalogueService.updateCatalogueDataFile(catalogueDataFile); |
| | | } |
| | | |
| | | /** |
| | | * 目录数据文件删除 |
| | | * @param dataFileId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "目录数据文件删除") |
| | | @GetMapping("/catalogueDataFile/deleted") |
| | | public CommonResult deletedCatalogueDataFile(@RequestParam("dataFileId") Integer dataFileId){ |
| | | return catalogueService.deletedCatalogueDataFile(dataFileId); |
| | | } |
| | | |
| | | |
| | | |
| | | } |