gongzuming
2024-10-08 80c0af32789bb8092a726fc9e3ffcd5c634c8043
src/main/java/com/mzl/flower/web/supplier/FlowerSupplierController.java
@@ -145,4 +145,25 @@
        flowerService.editFlowerStock(dto);
        return returnData(R.SUCCESS.getCode(), null);
    }
    @PostMapping("/list/delete/batch")
    @ApiOperation(value = "商品批量删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "商品ids", required = true, dataType = "Long", paramType = "query")
    })
    public ResponseEntity<ReturnDataDTO<?>> deleteFlowerBatch(@RequestBody FlowerBatchDTO dto) {
        flowerService.deleteFlowerBatch(dto);
        return returnData(R.SUCCESS.getCode(), null);
    }
    @PostMapping("/list/restore/batch")
    @ApiOperation(value = "商品批量恢复")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "商品ids", required = true, dataType = "Long", paramType = "query")
    })
    public ResponseEntity<ReturnDataDTO<?>> restoreFlowerBatch(@RequestBody FlowerBatchDTO dto) {
        flowerService.restoreFlowerBatch(dto);
        return returnData(R.SUCCESS.getCode(), null);
    }
}