| | |
| | | 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; |
| | | |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * 目录复制 |
| | | * @param catalogue |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "目录复制") |
| | | @PostMapping("/catalogue/copy") |
| | | public CommonResult copyCatalogue(@RequestBody List<CatalogueVo> catalogue){ |
| | | return catalogueService.copyCatalogue(catalogue); |
| | | } |
| | | |
| | | /** |
| | | * 质量管理体系运行修改 |
| | | * @param catalogue |
| | | * @return |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 产品与项目列表 |
| | | * @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); |
| | | } |
| | | |
| | | |
| | | |
| | | } |