From 18813ca83b94c807e35756a8a5f52effa5b99ba8 Mon Sep 17 00:00:00 2001
From: zepengdev <lzpsmith@outlook.com>
Date: Tue, 17 Jun 2025 16:00:42 +0800
Subject: [PATCH] feat(product): 新增商品批量查询接口

---
 oying-system/src/main/java/com/oying/modules/pc/product/service/ProductLabelService.java |   86 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 86 insertions(+), 0 deletions(-)

diff --git a/oying-system/src/main/java/com/oying/modules/pc/product/service/ProductLabelService.java b/oying-system/src/main/java/com/oying/modules/pc/product/service/ProductLabelService.java
new file mode 100644
index 0000000..555b399
--- /dev/null
+++ b/oying-system/src/main/java/com/oying/modules/pc/product/service/ProductLabelService.java
@@ -0,0 +1,86 @@
+package com.oying.modules.pc.product.service;
+
+import com.oying.modules.pc.product.domain.ProductLabel;
+import com.oying.modules.pc.product.domain.dto.ProductLabelQueryCriteria;
+import java.util.Map;
+import java.util.List;
+import java.io.IOException;
+import javax.servlet.http.HttpServletResponse;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.oying.utils.PageResult;
+
+/**
+* @description 服务接口
+* @author lzp
+* @date 2025-05-28
+**/
+public interface ProductLabelService extends IService<ProductLabel> {
+
+    /**
+    * 查询数据分页
+    * @param criteria 条件
+    * @param page 分页参数
+    * @return PageResult
+    */
+    PageResult<ProductLabel> queryAll(ProductLabelQueryCriteria criteria, Page<Object> page);
+
+    /**
+    * 查询所有数据不分页
+    * @param criteria 条件参数
+    * @return List<ProductLabel>
+    */
+    List<ProductLabel> queryAll(ProductLabelQueryCriteria criteria);
+
+    /**
+     * 查询
+     * @param ids /
+     * @return List<ProductLabel>
+     */
+    List<ProductLabel> queryBatchIds(List<Long> ids);
+
+    /**
+     * 查询商品的所有标签
+     * @param productId /
+     * @return List<ProductLabel>
+     */
+    List<ProductLabel> queryLabelsByProductId(Long productId);
+
+    /**
+    * 创建
+    * @param resources /
+    */
+    void create(ProductLabel resources);
+
+    /**
+     * 批量创建
+     * @param resources /
+     */
+    void batchCreate(List<ProductLabel> resources);
+
+    /**
+    * 编辑
+    * @param resources /
+    */
+    void update(ProductLabel resources);
+
+    /**
+     * 编辑
+     * @param resources /
+     */
+    void batchUpdate(List<ProductLabel> resources);
+
+    /**
+    * 多选删除
+    * @param ids /
+    */
+    void deleteAll(List<Long> ids);
+
+    /**
+    * 导出数据
+    * @param all 待导出的数据
+    * @param response /
+    * @throws IOException /
+    */
+    void download(List<ProductLabel> all, HttpServletResponse response) throws IOException;
+}

--
Gitblit v1.9.3