zepengdev
2025-06-20 218b9211344b208c425e098e1e51568c66eb1c80
refactor(product api): 批量查询接口改用@RequestParam接收参数
1 files modified
2 ■■■ changed files
oying-system/src/main/java/com/oying/modules/pc/product/rest/ProductController.java 2 ●●● patch | view | raw | blame | history
oying-system/src/main/java/com/oying/modules/pc/product/rest/ProductController.java
@@ -58,7 +58,7 @@
    @GetMapping(value = "/batch")
    @ApiOperation("查询商品(批量)")
    // @PreAuthorize("@el.check('product:list')")
    public ResponseEntity<?> getProductsByIds(@RequestBody List<Long> ids) {
    public ResponseEntity<?> getProductsByIds(@RequestParam(value = "ids") List<Long> ids) {
        return ResponseEntity.ok(R.success(productService.listByIds(ids)));
    }