| | |
| | | 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.domain.vo.CatalogueVo; |
| | | 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.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Api(tags = "企业质量目标管理") |
| | | @RestController |
| | |
| | | |
| | | @Autowired |
| | | private QualityDecomposeService qualityDecomposeService; |
| | | |
| | | @Autowired |
| | | private CatalogueService catalogueService; |
| | | |
| | | @Autowired |
| | | private ProductItemService productItemService; |
| | | |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 质量管理体系运行列表 |
| | | * @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/copy") |
| | | public CommonResult copyCatalogue(@RequestBody List<CatalogueVo> catalogue){ |
| | | return catalogueService.copyCatalogue(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("/catalogueDataFile/list") |
| | | public CommonResult listCatalogueDataFile(CatalogueReq catalogueReq){ |
| | | return CommonResult.success(catalogueService.selectCatalogueDataFileList(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); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 产品与项目列表 |
| | | * @param productItem |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "产品与项目列表") |
| | | @GetMapping("/productItem/list") |
| | | public CommonResult listProductItem(ProductItem productItem){ |
| | | return CommonResult.success(productItemService.selectProductItem(productItem)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 产品与项目新增 |
| | | * @param productItem |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "产品与项目新增") |
| | | @PostMapping("/productItem/insert") |
| | | public CommonResult insertProductItem(@RequestBody ProductItem productItem){ |
| | | return productItemService.insertProductItem(productItem); |
| | | } |
| | | |
| | | /** |
| | | * 产品与项目修改 |
| | | * @param productItem |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "产品与项目修改") |
| | | @PostMapping("/productItem/update") |
| | | public CommonResult updateProductItem(@RequestBody ProductItem productItem){ |
| | | return productItemService.updateProductItem(productItem); |
| | | } |
| | | |
| | | /** |
| | | * 产品与项目删除 |
| | | * @param itemId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "产品与项目删除") |
| | | @GetMapping("/productItem/deleted") |
| | | public CommonResult deletedProductItem(@RequestParam("itemId") Integer itemId){ |
| | | return productItemService.deletedProductItem(itemId); |
| | | } |
| | | |
| | | |
| | | |
| | | } |