| | |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | 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.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Api(tags = "企业质量目标管理") |
| | | @RestController |
| | |
| | | |
| | | @Autowired |
| | | private CatalogueService catalogueService; |
| | | |
| | | @Autowired |
| | | private ProductItemService productItemService; |
| | | |
| | | @Autowired |
| | | private ItemService itemService; |
| | | |
| | | @Autowired |
| | | private ItemReviewService itemReviewService; |
| | | |
| | | @Autowired |
| | | private ProjectDocumentService projectDocumentService; |
| | | |
| | | |
| | | /** |
| | |
| | | |
| | | |
| | | /** |
| | | * 质量管理体系运行列表 |
| | | * 目录数据 |
| | | * @param catalogueReq |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "质量管理体系运行列表") |
| | | @ApiOperation(value = "目录数据列表") |
| | | @GetMapping("/catalogue/list") |
| | | public CommonResult listCatalogue(CatalogueReq catalogueReq){ |
| | | return CommonResult.success(catalogueService.selectCatalogueList(catalogueReq)); |
| | |
| | | * @param catalogue |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "质量管理体系运行新增") |
| | | @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 = "质量管理体系运行修改") |
| | | @ApiOperation(value = "目录数据修改") |
| | | @PostMapping("/catalogue/update") |
| | | public CommonResult updateCatalogue(@RequestBody Catalogue catalogue){ |
| | | return catalogueService.updateCatalogue(catalogue); |
| | |
| | | * @param catalogueId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "质量管理体系运行删除") |
| | | @ApiOperation(value = "目录数据删除") |
| | | @GetMapping("/catalogue/deleted") |
| | | public CommonResult deletedCatalogue(@RequestParam("catalogueId") Integer catalogueId){ |
| | | return catalogueService.deletedCatalogue(catalogueId); |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 产品与项目列表 |
| | | * @param productItem |
| | | * @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("/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); |
| | | } |
| | | |
| | | /** |
| | | * 项目列表 |
| | | * @param item |
| | | * @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("/item/list") |
| | | public CommonResult listitem(Item item){ |
| | | return CommonResult.success(itemService.selectItemList(item)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "项目列表") |
| | | @GetMapping("/item/listAll") |
| | | public CommonResult allListItem(ItemReq itemReq){ |
| | | return itemService.selectItemListAll(itemReq); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 项目新增 |
| | | * @param item |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "项目新增") |
| | | @PostMapping("/item/insert") |
| | | public CommonResult insertItem(@RequestBody Item item){ |
| | | return itemService.insertItem(item); |
| | | } |
| | | |
| | | /** |
| | | * 项目修改 |
| | | * @param item |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "项目修改") |
| | | @PostMapping("/item/update") |
| | | public CommonResult updateItem(@RequestBody Item item){ |
| | | return itemService.updateItem(item); |
| | | } |
| | | |
| | | /** |
| | | * 项目删除 |
| | | * @param itemId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "项目删除") |
| | | @GetMapping("/item/deleted") |
| | | public CommonResult deletedItem(@RequestParam("itemId") Integer itemId){ |
| | | return itemService.deletedItem(itemId); |
| | | } |
| | | |
| | | |
| | | |
| | | @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("/review/list") |
| | | public CommonResult listItemReview(ItemReview itemReview){ |
| | | return CommonResult.success(itemReviewService.selectItemList(itemReview)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 项目评审新增 |
| | | * @param item |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "项目评审新增") |
| | | @PostMapping("/review/insert") |
| | | public CommonResult insertItemReview(@RequestBody ItemReview item){ |
| | | return itemReviewService.insertItem(item); |
| | | } |
| | | |
| | | /** |
| | | * 项目评审修改 |
| | | * @param item |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "项目评审修改") |
| | | @PostMapping("/review/update") |
| | | public CommonResult updateItemReview(@RequestBody ItemReview item){ |
| | | return itemReviewService.updateItem(item); |
| | | } |
| | | |
| | | /** |
| | | * 项目评审删除 |
| | | * @param itemReviewId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "项目评审删除") |
| | | @GetMapping("/review/deleted") |
| | | public CommonResult deletedItemReview(@RequestParam("itemReviewId") Integer itemReviewId){ |
| | | return itemReviewService.deletedItem(itemReviewId); |
| | | } |
| | | |
| | | /** |
| | | * 发送 |
| | | * @param itemReviewId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "发送") |
| | | @GetMapping("/review/send") |
| | | public CommonResult sendItemReview(@RequestParam("itemReviewId") Integer itemReviewId){ |
| | | return itemReviewService.sendItem(itemReviewId); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 项目文档新增 |
| | | * @param projectDocument |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "项目文档新增") |
| | | @PostMapping("/project/insert") |
| | | public CommonResult insertProjectDocument(@RequestBody CatalogueProjectDocumentReq projectDocument){ |
| | | return projectDocumentService.insertprojectDocument(projectDocument); |
| | | } |
| | | |
| | | /** |
| | | * 项目文档修改 |
| | | * @param projectDocument |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "项目文档修改") |
| | | @PostMapping("/project/update") |
| | | public CommonResult updateProjectDocument(@RequestBody CatalogueProjectDocumentReq projectDocument){ |
| | | return projectDocumentService.updateprojectDocument(projectDocument); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 目录文档数据 |
| | | * @param catalogueReq |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "目录文档数据列表") |
| | | @GetMapping("/document/list") |
| | | public CommonResult listProjectDocument(CatalogueReq catalogueReq){ |
| | | return CommonResult.success(catalogueService.selectCatalogueDocumentList(catalogueReq)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |