| | |
| | | @Autowired |
| | | private ProductItemService productItemService; |
| | | |
| | | @Autowired |
| | | private ItemService itemService; |
| | | |
| | | |
| | | /** |
| | | * 质量目标列表 |
| | |
| | | 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); |
| | | } |
| | | |
| | | |
| | | |
| | | } |