Commit b89d7ff3841789f33400e33c448da0951263d244
1 parent
4a01348e
[修改][商品分类]
1. 删除 description 分类描述字段 2. 新增big_pic_url PC端分类图字段
Showing
3 changed files
with
9 additions
and
9 deletions
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/category/vo/ProductCategoryBaseVO.java
| @@ -28,11 +28,11 @@ public class ProductCategoryBaseVO { | @@ -28,11 +28,11 @@ public class ProductCategoryBaseVO { | ||
| 28 | @Schema(description = "分类排序", required = true, example = "1") | 28 | @Schema(description = "分类排序", required = true, example = "1") |
| 29 | private Integer sort; | 29 | private Integer sort; |
| 30 | 30 | ||
| 31 | - @Schema(description = "分类描述", required = true, example = "描述") | ||
| 32 | - private String description; | ||
| 33 | - | ||
| 34 | @Schema(description = "开启状态", required = true, example = "0") | 31 | @Schema(description = "开启状态", required = true, example = "0") |
| 35 | @NotNull(message = "开启状态不能为空") | 32 | @NotNull(message = "开启状态不能为空") |
| 36 | private Integer status; | 33 | private Integer status; |
| 37 | 34 | ||
| 35 | + @Schema(description = "PC端分类图") | ||
| 36 | + private String bigPicUrl; | ||
| 37 | + | ||
| 38 | } | 38 | } |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/category/ProductCategoryDO.java
| @@ -54,14 +54,14 @@ public class ProductCategoryDO extends BaseDO { | @@ -54,14 +54,14 @@ public class ProductCategoryDO extends BaseDO { | ||
| 54 | */ | 54 | */ |
| 55 | private Integer sort; | 55 | private Integer sort; |
| 56 | /** | 56 | /** |
| 57 | - * 分类描述 | ||
| 58 | - */ | ||
| 59 | - private String description; | ||
| 60 | - /** | ||
| 61 | * 开启状态 | 57 | * 开启状态 |
| 62 | - * | 58 | + * <p> |
| 63 | * 枚举 {@link CommonStatusEnum} | 59 | * 枚举 {@link CommonStatusEnum} |
| 64 | */ | 60 | */ |
| 65 | private Integer status; | 61 | private Integer status; |
| 62 | + /** | ||
| 63 | + * PC端分类图 | ||
| 64 | + */ | ||
| 65 | + private String bigPicUrl; | ||
| 66 | 66 | ||
| 67 | } | 67 | } |
yudao-module-mall/yudao-module-product-biz/src/test/resources/sql/create_tables.sql
| @@ -56,8 +56,8 @@ CREATE TABLE IF NOT EXISTS `product_category` ( | @@ -56,8 +56,8 @@ CREATE TABLE IF NOT EXISTS `product_category` ( | ||
| 56 | `id` bigint NOT NULL AUTO_INCREMENT COMMENT '分类编号', | 56 | `id` bigint NOT NULL AUTO_INCREMENT COMMENT '分类编号', |
| 57 | `parent_id` bigint DEFAULT NULL COMMENT '父分类编号', | 57 | `parent_id` bigint DEFAULT NULL COMMENT '父分类编号', |
| 58 | `name` varchar(128) NOT NULL COMMENT '分类名称', | 58 | `name` varchar(128) NOT NULL COMMENT '分类名称', |
| 59 | - `description` varchar(128) NOT NULL COMMENT '分类描述', | ||
| 60 | `pic_url` varchar DEFAULT NULL COMMENT '分类图片', | 59 | `pic_url` varchar DEFAULT NULL COMMENT '分类图片', |
| 60 | + `big_pic_url` varchar DEFAULT NULL COMMENT 'PC端分类图', | ||
| 61 | `sort` int NOT NULL DEFAULT '0' COMMENT '排序字段', | 61 | `sort` int NOT NULL DEFAULT '0' COMMENT '排序字段', |
| 62 | `status` bit(1) DEFAULT NULL COMMENT '状态', | 62 | `status` bit(1) DEFAULT NULL COMMENT '状态', |
| 63 | `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', | 63 | `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |