From f6239d1029da4c51ba3b2cec790f7399a210a3df Mon Sep 17 00:00:00 2001 From: zepengdev <lzpsmith@outlook.com> Date: Sat, 19 Jul 2025 16:13:27 +0800 Subject: [PATCH] feat: 优化商品和店铺 --- oying-system/src/main/java/com/oying/modules/pc/product/rest/ProductMerchantController.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/oying-system/src/main/java/com/oying/modules/pc/product/rest/ProductMerchantController.java b/oying-system/src/main/java/com/oying/modules/pc/product/rest/ProductMerchantController.java index 800f96f..899e619 100644 --- a/oying-system/src/main/java/com/oying/modules/pc/product/rest/ProductMerchantController.java +++ b/oying-system/src/main/java/com/oying/modules/pc/product/rest/ProductMerchantController.java @@ -124,6 +124,16 @@ return ResponseEntity.noContent().build(); } + @PostMapping(value = "/delete") + @Log("批量删除商品") + @ApiOperation("批量删除商品") + //@PreAuthorize("@el.check('merchant:product:batchDel') " + + // "and @storeMerchantOwnershipService.check(#storeId)") + public ResponseEntity<?> delProduct(@ApiParam(value = "传ID数组[]") @RequestBody List<Long> ids) { + productMerchantService.batchDelete(ids); + return ResponseEntity.noContent().build(); + } + @PutMapping(value = "/{productId}/on") @Log("上架商品") @ApiOperation("上架商品") -- Gitblit v1.9.3