From 2c3df9bb127c2ee5202f1be3fe9d963eaab0b1f5 Mon Sep 17 00:00:00 2001
From: bunny <1319900154@qq.com>
Date: Wed, 3 Apr 2024 16:06:46 +0800
Subject: [PATCH] =?UTF-8?q?feat(product):=20=E5=95=86=E5=93=81=E5=88=86?=
=?UTF-8?q?=E7=B1=BB=E7=AE=A1=E7=90=86=E5=AE=8C=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ssyx/product/config/Knife4jConfig.java | 2 +-
.../product/controller/AttrController.java | 21 +++++
.../controller/AttrGroupController.java | 21 +++++
.../controller/CategoryController.java | 82 +++++++++++++++++++
.../controller/SkuAttrValueController.java | 21 +++++
.../controller/SkuImageController.java | 21 +++++
.../product/controller/SkuInfoController.java | 21 +++++
.../controller/SkuPosterController.java | 21 +++++
.../ssyx/product/mapper/AttrGroupMapper.java | 16 ++++
.../ssyx/product/mapper/AttrMapper.java | 16 ++++
.../ssyx/product/mapper/CategoryMapper.java | 16 ++++
.../product/mapper/SkuAttrValueMapper.java | 16 ++++
.../ssyx/product/mapper/SkuImageMapper.java | 16 ++++
.../ssyx/product/mapper/SkuInfoMapper.java | 16 ++++
.../ssyx/product/mapper/SkuPosterMapper.java | 16 ++++
.../product/service/AttrGroupService.java | 16 ++++
.../ssyx/product/service/AttrService.java | 16 ++++
.../ssyx/product/service/CategoryService.java | 30 +++++++
.../product/service/SkuAttrValueService.java | 16 ++++
.../ssyx/product/service/SkuImageService.java | 16 ++++
.../ssyx/product/service/SkuInfoService.java | 16 ++++
.../product/service/SkuPosterService.java | 16 ++++
.../service/impl/AttrGroupServiceImpl.java | 20 +++++
.../product/service/impl/AttrServiceImpl.java | 20 +++++
.../service/impl/CategoryServiceImpl.java | 47 +++++++++++
.../service/impl/SkuAttrValueServiceImpl.java | 20 +++++
.../service/impl/SkuImageServiceImpl.java | 20 +++++
.../service/impl/SkuInfoServiceImpl.java | 20 +++++
.../service/impl/SkuPosterServiceImpl.java | 20 +++++
.../main/resources/mapper/AttrGroupMapper.xml | 5 ++
.../src/main/resources/mapper/AttrMapper.xml | 5 ++
.../mapper/BaseCategoryTrademarkMapper.xml | 5 ++
.../main/resources/mapper/CategoryMapper.xml | 5 ++
.../main/resources/mapper/CommentMapper.xml | 5 ++
.../resources/mapper/CommentReplayMapper.xml | 5 ++
.../resources/mapper/MqRepeatRecordMapper.xml | 5 ++
.../resources/mapper/RegionWareMapper.xml | 5 ++
.../resources/mapper/SkuAttrValueMapper.xml | 5 ++
.../main/resources/mapper/SkuDetailMapper.xml | 5 ++
.../main/resources/mapper/SkuImageMapper.xml | 5 ++
.../main/resources/mapper/SkuInfoMapper.xml | 5 ++
.../main/resources/mapper/SkuPosterMapper.xml | 5 ++
.../mapper/SkuStockHistoryMapper.xml | 5 ++
.../src/main/resources/mapper/WareMapper.xml | 5 ++
44 files changed, 689 insertions(+), 1 deletion(-)
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/controller/AttrController.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/controller/AttrGroupController.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/controller/CategoryController.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuAttrValueController.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuImageController.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuInfoController.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuPosterController.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/AttrGroupMapper.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/AttrMapper.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/CategoryMapper.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuAttrValueMapper.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuImageMapper.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuInfoMapper.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuPosterMapper.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/service/AttrGroupService.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/service/AttrService.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/service/CategoryService.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuAttrValueService.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuImageService.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuInfoService.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuPosterService.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/AttrGroupServiceImpl.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/AttrServiceImpl.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/CategoryServiceImpl.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuAttrValueServiceImpl.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuImageServiceImpl.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuInfoServiceImpl.java
create mode 100644 service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuPosterServiceImpl.java
create mode 100644 service/service-product/src/main/resources/mapper/AttrGroupMapper.xml
create mode 100644 service/service-product/src/main/resources/mapper/AttrMapper.xml
create mode 100644 service/service-product/src/main/resources/mapper/BaseCategoryTrademarkMapper.xml
create mode 100644 service/service-product/src/main/resources/mapper/CategoryMapper.xml
create mode 100644 service/service-product/src/main/resources/mapper/CommentMapper.xml
create mode 100644 service/service-product/src/main/resources/mapper/CommentReplayMapper.xml
create mode 100644 service/service-product/src/main/resources/mapper/MqRepeatRecordMapper.xml
create mode 100644 service/service-product/src/main/resources/mapper/RegionWareMapper.xml
create mode 100644 service/service-product/src/main/resources/mapper/SkuAttrValueMapper.xml
create mode 100644 service/service-product/src/main/resources/mapper/SkuDetailMapper.xml
create mode 100644 service/service-product/src/main/resources/mapper/SkuImageMapper.xml
create mode 100644 service/service-product/src/main/resources/mapper/SkuInfoMapper.xml
create mode 100644 service/service-product/src/main/resources/mapper/SkuPosterMapper.xml
create mode 100644 service/service-product/src/main/resources/mapper/SkuStockHistoryMapper.xml
create mode 100644 service/service-product/src/main/resources/mapper/WareMapper.xml
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/config/Knife4jConfig.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/config/Knife4jConfig.java
index 99cfe59..5ae9d31 100644
--- a/service/service-product/src/main/java/com/atguigu/ssyx/product/config/Knife4jConfig.java
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/config/Knife4jConfig.java
@@ -34,7 +34,7 @@ public class Knife4jConfig {
pars.add(tokenPar.build());
return new Docket(DocumentationType.SWAGGER_2)
- .groupName("adminApi")
+ .groupName("商品相关API")
.apiInfo(adminApiInfo())
.select()
.apis(RequestHandlerSelectors.basePackage("com.atguigu.ssyx.product.controller"))
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/AttrController.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/AttrController.java
new file mode 100644
index 0000000..18ad0d9
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/AttrController.java
@@ -0,0 +1,21 @@
+package com.atguigu.ssyx.product.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ *
+ * 商品属性 前端控制器
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+@RestController
+@RequestMapping("/product/attr")
+public class AttrController {
+
+}
+
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/AttrGroupController.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/AttrGroupController.java
new file mode 100644
index 0000000..4b0c509
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/AttrGroupController.java
@@ -0,0 +1,21 @@
+package com.atguigu.ssyx.product.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ *
+ * 属性分组 前端控制器
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+@RestController
+@RequestMapping("/product/attr-group")
+public class AttrGroupController {
+
+}
+
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/CategoryController.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/CategoryController.java
new file mode 100644
index 0000000..d0557de
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/CategoryController.java
@@ -0,0 +1,82 @@
+package com.atguigu.ssyx.product.controller;
+
+
+import com.atguigu.ssyx.common.result.Result;
+import com.atguigu.ssyx.model.product.Category;
+import com.atguigu.ssyx.product.service.CategoryService;
+import com.atguigu.ssyx.vo.product.CategoryQueryVo;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@Api(value = "Category管理", tags = "商品分类管理")
+@RestController
+@RequestMapping(value = "/admin/product/category")
+public class CategoryController {
+ @Autowired
+ private CategoryService categoryService;
+
+ @ApiOperation(value = "获取商品分类分页列表")
+ @GetMapping("{page}/{limit}")
+ public Result> index(
+ @ApiParam(name = "page", value = "当前页码", required = true)
+ @PathVariable Long page,
+ @ApiParam(name = "limit", value = "每页记录数", required = true)
+ @PathVariable Long limit,
+ @ApiParam(name = "categoryQueryVo", value = "查询对象", required = false)
+ CategoryQueryVo categoryQueryVo) {
+ Page pageParam = new Page<>(page, limit);
+ IPage pageModel = categoryService.selectPage(pageParam, categoryQueryVo);
+
+ return Result.success(pageModel);
+ }
+
+ @ApiOperation(value = "获取商品分类信息")
+ @GetMapping("get/{id}")
+ public Result get(@PathVariable Long id) {
+ Category category = categoryService.getById(id);
+ return Result.success(category);
+ }
+
+ @ApiOperation(value = "新增商品分类")
+ @PostMapping("save")
+ public Result save(@RequestBody Category category) {
+ categoryService.save(category);
+ return Result.success();
+ }
+
+ @ApiOperation(value = "修改商品分类")
+ @PutMapping("update")
+ public Result updateById(@RequestBody Category category) {
+ categoryService.updateById(category);
+ return Result.success();
+ }
+
+ @ApiOperation(value = "删除商品分类")
+ @DeleteMapping("remove/{id}")
+ public Result remove(@PathVariable Long id) {
+ categoryService.removeById(id);
+ return Result.success();
+ }
+
+ @ApiOperation(value = "根据id列表删除商品分类")
+ @DeleteMapping("batchRemove")
+ public Result batchRemove(@RequestBody List ids) {
+ categoryService.removeByIds(ids);
+ return Result.success();
+ }
+
+ @ApiOperation(value = "获取全部商品分类")
+ @GetMapping("findAllList")
+ public Result> findAllList() {
+ List categoryList = categoryService.findAllList();
+ return Result.success(categoryList);
+ }
+}
+
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuAttrValueController.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuAttrValueController.java
new file mode 100644
index 0000000..c3621f6
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuAttrValueController.java
@@ -0,0 +1,21 @@
+package com.atguigu.ssyx.product.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ *
+ * spu属性值 前端控制器
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+@RestController
+@RequestMapping("/product/sku-attr-value")
+public class SkuAttrValueController {
+
+}
+
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuImageController.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuImageController.java
new file mode 100644
index 0000000..b6f22e7
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuImageController.java
@@ -0,0 +1,21 @@
+package com.atguigu.ssyx.product.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ *
+ * 商品图片 前端控制器
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+@RestController
+@RequestMapping("/product/sku-image")
+public class SkuImageController {
+
+}
+
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuInfoController.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuInfoController.java
new file mode 100644
index 0000000..cd6dbc0
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuInfoController.java
@@ -0,0 +1,21 @@
+package com.atguigu.ssyx.product.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ *
+ * sku信息 前端控制器
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+@RestController
+@RequestMapping("/product/sku-info")
+public class SkuInfoController {
+
+}
+
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuPosterController.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuPosterController.java
new file mode 100644
index 0000000..e699c3f
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuPosterController.java
@@ -0,0 +1,21 @@
+package com.atguigu.ssyx.product.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ *
+ * 商品海报表 前端控制器
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+@RestController
+@RequestMapping("/product/sku-poster")
+public class SkuPosterController {
+
+}
+
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/AttrGroupMapper.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/AttrGroupMapper.java
new file mode 100644
index 0000000..45a30dc
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/AttrGroupMapper.java
@@ -0,0 +1,16 @@
+package com.atguigu.ssyx.product.mapper;
+
+import com.atguigu.ssyx.model.product.AttrGroup;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ *
+ * 属性分组 Mapper 接口
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+public interface AttrGroupMapper extends BaseMapper {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/AttrMapper.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/AttrMapper.java
new file mode 100644
index 0000000..4ed243d
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/AttrMapper.java
@@ -0,0 +1,16 @@
+package com.atguigu.ssyx.product.mapper;
+
+import com.atguigu.ssyx.model.product.Attr;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ *
+ * 商品属性 Mapper 接口
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+public interface AttrMapper extends BaseMapper {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/CategoryMapper.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/CategoryMapper.java
new file mode 100644
index 0000000..5ad4010
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/CategoryMapper.java
@@ -0,0 +1,16 @@
+package com.atguigu.ssyx.product.mapper;
+
+import com.atguigu.ssyx.model.product.Category;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ *
+ * 商品三级分类 Mapper 接口
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+public interface CategoryMapper extends BaseMapper {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuAttrValueMapper.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuAttrValueMapper.java
new file mode 100644
index 0000000..50f336c
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuAttrValueMapper.java
@@ -0,0 +1,16 @@
+package com.atguigu.ssyx.product.mapper;
+
+import com.atguigu.ssyx.model.product.SkuAttrValue;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ *
+ * spu属性值 Mapper 接口
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+public interface SkuAttrValueMapper extends BaseMapper {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuImageMapper.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuImageMapper.java
new file mode 100644
index 0000000..06f12b0
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuImageMapper.java
@@ -0,0 +1,16 @@
+package com.atguigu.ssyx.product.mapper;
+
+import com.atguigu.ssyx.model.product.SkuImage;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ *
+ * 商品图片 Mapper 接口
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+public interface SkuImageMapper extends BaseMapper {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuInfoMapper.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuInfoMapper.java
new file mode 100644
index 0000000..7eff652
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuInfoMapper.java
@@ -0,0 +1,16 @@
+package com.atguigu.ssyx.product.mapper;
+
+import com.atguigu.ssyx.model.product.SkuInfo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ *
+ * sku信息 Mapper 接口
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+public interface SkuInfoMapper extends BaseMapper {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuPosterMapper.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuPosterMapper.java
new file mode 100644
index 0000000..d9290f0
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/SkuPosterMapper.java
@@ -0,0 +1,16 @@
+package com.atguigu.ssyx.product.mapper;
+
+import com.atguigu.ssyx.model.product.SkuPoster;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ *
+ * 商品海报表 Mapper 接口
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+public interface SkuPosterMapper extends BaseMapper {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/service/AttrGroupService.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/AttrGroupService.java
new file mode 100644
index 0000000..b026dd2
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/AttrGroupService.java
@@ -0,0 +1,16 @@
+package com.atguigu.ssyx.product.service;
+
+import com.atguigu.ssyx.model.product.AttrGroup;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ *
+ * 属性分组 服务类
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+public interface AttrGroupService extends IService {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/service/AttrService.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/AttrService.java
new file mode 100644
index 0000000..73b265d
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/AttrService.java
@@ -0,0 +1,16 @@
+package com.atguigu.ssyx.product.service;
+
+import com.atguigu.ssyx.model.product.Attr;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ *
+ * 商品属性 服务类
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+public interface AttrService extends IService {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/service/CategoryService.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/CategoryService.java
new file mode 100644
index 0000000..a1c6764
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/CategoryService.java
@@ -0,0 +1,30 @@
+package com.atguigu.ssyx.product.service;
+
+import com.atguigu.ssyx.model.product.Category;
+import com.atguigu.ssyx.vo.product.CategoryQueryVo;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+import java.util.List;
+
+/**
+ *
+ * 商品三级分类 服务类
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+public interface CategoryService extends IService {
+
+ /**
+ * 获取商品分类分页列表
+ */
+ IPage selectPage(Page pageParam, CategoryQueryVo categoryQueryVo);
+
+ /**
+ * 获取全部商品分类
+ */
+ List findAllList();
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuAttrValueService.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuAttrValueService.java
new file mode 100644
index 0000000..120f6b1
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuAttrValueService.java
@@ -0,0 +1,16 @@
+package com.atguigu.ssyx.product.service;
+
+import com.atguigu.ssyx.model.product.SkuAttrValue;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ *
+ * spu属性值 服务类
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+public interface SkuAttrValueService extends IService {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuImageService.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuImageService.java
new file mode 100644
index 0000000..26c3e76
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuImageService.java
@@ -0,0 +1,16 @@
+package com.atguigu.ssyx.product.service;
+
+import com.atguigu.ssyx.model.product.SkuImage;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ *
+ * 商品图片 服务类
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+public interface SkuImageService extends IService {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuInfoService.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuInfoService.java
new file mode 100644
index 0000000..d9b08c9
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuInfoService.java
@@ -0,0 +1,16 @@
+package com.atguigu.ssyx.product.service;
+
+import com.atguigu.ssyx.model.product.SkuInfo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ *
+ * sku信息 服务类
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+public interface SkuInfoService extends IService {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuPosterService.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuPosterService.java
new file mode 100644
index 0000000..abf22d1
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/SkuPosterService.java
@@ -0,0 +1,16 @@
+package com.atguigu.ssyx.product.service;
+
+import com.atguigu.ssyx.model.product.SkuPoster;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ *
+ * 商品海报表 服务类
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+public interface SkuPosterService extends IService {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/AttrGroupServiceImpl.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/AttrGroupServiceImpl.java
new file mode 100644
index 0000000..58b7b92
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/AttrGroupServiceImpl.java
@@ -0,0 +1,20 @@
+package com.atguigu.ssyx.product.service.impl;
+
+import com.atguigu.ssyx.model.product.AttrGroup;
+import com.atguigu.ssyx.product.mapper.AttrGroupMapper;
+import com.atguigu.ssyx.product.service.AttrGroupService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ *
+ * 属性分组 服务实现类
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+@Service
+public class AttrGroupServiceImpl extends ServiceImpl implements AttrGroupService {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/AttrServiceImpl.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/AttrServiceImpl.java
new file mode 100644
index 0000000..f3ac9c9
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/AttrServiceImpl.java
@@ -0,0 +1,20 @@
+package com.atguigu.ssyx.product.service.impl;
+
+import com.atguigu.ssyx.model.product.Attr;
+import com.atguigu.ssyx.product.mapper.AttrMapper;
+import com.atguigu.ssyx.product.service.AttrService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ *
+ * 商品属性 服务实现类
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+@Service
+public class AttrServiceImpl extends ServiceImpl implements AttrService {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/CategoryServiceImpl.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/CategoryServiceImpl.java
new file mode 100644
index 0000000..f4c8264
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/CategoryServiceImpl.java
@@ -0,0 +1,47 @@
+package com.atguigu.ssyx.product.service.impl;
+
+import com.atguigu.ssyx.model.product.Category;
+import com.atguigu.ssyx.product.mapper.CategoryMapper;
+import com.atguigu.ssyx.product.service.CategoryService;
+import com.atguigu.ssyx.vo.product.CategoryQueryVo;
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ *
+ * 商品三级分类 服务实现类
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+@Service
+public class CategoryServiceImpl extends ServiceImpl implements CategoryService {
+
+ /**
+ * 获取商品分类分页列表
+ */
+ @Override
+ public IPage selectPage(Page pageParam, CategoryQueryVo vo) {
+ String name = vo.getName();
+ LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>();
+ wrapper.like(!StringUtils.isEmpty(name), Category::getName, name);
+
+ return baseMapper.selectPage(pageParam, wrapper);
+ }
+
+ /**
+ * 获取全部商品分类
+ */
+ @Override
+ public List findAllList() {
+ return list(Wrappers.lambdaQuery().orderByAsc(Category::getSort));
+ }
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuAttrValueServiceImpl.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuAttrValueServiceImpl.java
new file mode 100644
index 0000000..4f84a47
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuAttrValueServiceImpl.java
@@ -0,0 +1,20 @@
+package com.atguigu.ssyx.product.service.impl;
+
+import com.atguigu.ssyx.model.product.SkuAttrValue;
+import com.atguigu.ssyx.product.mapper.SkuAttrValueMapper;
+import com.atguigu.ssyx.product.service.SkuAttrValueService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ *
+ * spu属性值 服务实现类
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+@Service
+public class SkuAttrValueServiceImpl extends ServiceImpl implements SkuAttrValueService {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuImageServiceImpl.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuImageServiceImpl.java
new file mode 100644
index 0000000..c16cc9a
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuImageServiceImpl.java
@@ -0,0 +1,20 @@
+package com.atguigu.ssyx.product.service.impl;
+
+import com.atguigu.ssyx.model.product.SkuImage;
+import com.atguigu.ssyx.product.mapper.SkuImageMapper;
+import com.atguigu.ssyx.product.service.SkuImageService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ *
+ * 商品图片 服务实现类
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+@Service
+public class SkuImageServiceImpl extends ServiceImpl implements SkuImageService {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuInfoServiceImpl.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuInfoServiceImpl.java
new file mode 100644
index 0000000..a6cb98b
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuInfoServiceImpl.java
@@ -0,0 +1,20 @@
+package com.atguigu.ssyx.product.service.impl;
+
+import com.atguigu.ssyx.model.product.SkuInfo;
+import com.atguigu.ssyx.product.mapper.SkuInfoMapper;
+import com.atguigu.ssyx.product.service.SkuInfoService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ *
+ * sku信息 服务实现类
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+@Service
+public class SkuInfoServiceImpl extends ServiceImpl implements SkuInfoService {
+
+}
diff --git a/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuPosterServiceImpl.java b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuPosterServiceImpl.java
new file mode 100644
index 0000000..35edf9b
--- /dev/null
+++ b/service/service-product/src/main/java/com/atguigu/ssyx/product/service/impl/SkuPosterServiceImpl.java
@@ -0,0 +1,20 @@
+package com.atguigu.ssyx.product.service.impl;
+
+import com.atguigu.ssyx.model.product.SkuPoster;
+import com.atguigu.ssyx.product.mapper.SkuPosterMapper;
+import com.atguigu.ssyx.product.service.SkuPosterService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ *
+ * 商品海报表 服务实现类
+ *
+ *
+ * @author bunny
+ * @since 2024-04-03
+ */
+@Service
+public class SkuPosterServiceImpl extends ServiceImpl implements SkuPosterService {
+
+}
diff --git a/service/service-product/src/main/resources/mapper/AttrGroupMapper.xml b/service/service-product/src/main/resources/mapper/AttrGroupMapper.xml
new file mode 100644
index 0000000..bef7818
--- /dev/null
+++ b/service/service-product/src/main/resources/mapper/AttrGroupMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/service/service-product/src/main/resources/mapper/AttrMapper.xml b/service/service-product/src/main/resources/mapper/AttrMapper.xml
new file mode 100644
index 0000000..55a85a3
--- /dev/null
+++ b/service/service-product/src/main/resources/mapper/AttrMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/service/service-product/src/main/resources/mapper/BaseCategoryTrademarkMapper.xml b/service/service-product/src/main/resources/mapper/BaseCategoryTrademarkMapper.xml
new file mode 100644
index 0000000..61edfa2
--- /dev/null
+++ b/service/service-product/src/main/resources/mapper/BaseCategoryTrademarkMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/service/service-product/src/main/resources/mapper/CategoryMapper.xml b/service/service-product/src/main/resources/mapper/CategoryMapper.xml
new file mode 100644
index 0000000..ed9278f
--- /dev/null
+++ b/service/service-product/src/main/resources/mapper/CategoryMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/service/service-product/src/main/resources/mapper/CommentMapper.xml b/service/service-product/src/main/resources/mapper/CommentMapper.xml
new file mode 100644
index 0000000..90b190c
--- /dev/null
+++ b/service/service-product/src/main/resources/mapper/CommentMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/service/service-product/src/main/resources/mapper/CommentReplayMapper.xml b/service/service-product/src/main/resources/mapper/CommentReplayMapper.xml
new file mode 100644
index 0000000..564d57b
--- /dev/null
+++ b/service/service-product/src/main/resources/mapper/CommentReplayMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/service/service-product/src/main/resources/mapper/MqRepeatRecordMapper.xml b/service/service-product/src/main/resources/mapper/MqRepeatRecordMapper.xml
new file mode 100644
index 0000000..b961147
--- /dev/null
+++ b/service/service-product/src/main/resources/mapper/MqRepeatRecordMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/service/service-product/src/main/resources/mapper/RegionWareMapper.xml b/service/service-product/src/main/resources/mapper/RegionWareMapper.xml
new file mode 100644
index 0000000..ee53825
--- /dev/null
+++ b/service/service-product/src/main/resources/mapper/RegionWareMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/service/service-product/src/main/resources/mapper/SkuAttrValueMapper.xml b/service/service-product/src/main/resources/mapper/SkuAttrValueMapper.xml
new file mode 100644
index 0000000..bcf744e
--- /dev/null
+++ b/service/service-product/src/main/resources/mapper/SkuAttrValueMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/service/service-product/src/main/resources/mapper/SkuDetailMapper.xml b/service/service-product/src/main/resources/mapper/SkuDetailMapper.xml
new file mode 100644
index 0000000..7df959c
--- /dev/null
+++ b/service/service-product/src/main/resources/mapper/SkuDetailMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/service/service-product/src/main/resources/mapper/SkuImageMapper.xml b/service/service-product/src/main/resources/mapper/SkuImageMapper.xml
new file mode 100644
index 0000000..b144efe
--- /dev/null
+++ b/service/service-product/src/main/resources/mapper/SkuImageMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/service/service-product/src/main/resources/mapper/SkuInfoMapper.xml b/service/service-product/src/main/resources/mapper/SkuInfoMapper.xml
new file mode 100644
index 0000000..5052dec
--- /dev/null
+++ b/service/service-product/src/main/resources/mapper/SkuInfoMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/service/service-product/src/main/resources/mapper/SkuPosterMapper.xml b/service/service-product/src/main/resources/mapper/SkuPosterMapper.xml
new file mode 100644
index 0000000..010e3dd
--- /dev/null
+++ b/service/service-product/src/main/resources/mapper/SkuPosterMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/service/service-product/src/main/resources/mapper/SkuStockHistoryMapper.xml b/service/service-product/src/main/resources/mapper/SkuStockHistoryMapper.xml
new file mode 100644
index 0000000..102a7df
--- /dev/null
+++ b/service/service-product/src/main/resources/mapper/SkuStockHistoryMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/service/service-product/src/main/resources/mapper/WareMapper.xml b/service/service-product/src/main/resources/mapper/WareMapper.xml
new file mode 100644
index 0000000..2765aed
--- /dev/null
+++ b/service/service-product/src/main/resources/mapper/WareMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+