修改规格属性是int8

This commit is contained in:
2026-02-05 19:10:11 +08:00
parent 7cb90dfee8
commit 468d48609f
2 changed files with 5 additions and 4 deletions

View File

@@ -6,9 +6,9 @@ CREATE TABLE mall_product
main_img VARCHAR(255) DEFAULT '' NOT NULL, --缩略图
detail_img text[] NULL, --详情图
top_img text[] NULL, -- 详情页顶图
attribute text DEFAULT '' NOT NULL,
attribute text[] DEFAULT '' NOT NULL,
unit VARCHAR(12),
category_id VARCHAR(255) DEFAULT '' NOT NULL,
category_id int8 DEFAULT '' NOT NULL,
category_ids VARCHAR(255) DEFAULT '' NOT NULL,
cost_price DECIMAL(10, 2) DEFAULT 0.00 NOT NULL,
original_price DECIMAL(10, 2) DEFAULT 0.00 NOT NULL,

View File

@@ -81,8 +81,9 @@ public class MallProductEntity extends BaseEntity {
/**
* 规格详情
*/
@TableField(typeHandler = TextArrayTypeHandler.class)
@Schema(description = "规格详情")
private String attribute;
private List<String> attribute;
/**
* 单位
*/
@@ -92,7 +93,7 @@ public class MallProductEntity extends BaseEntity {
* cate_id分类
*/
@Schema(description = "cate_id分类")
private String categoryId;
private Long categoryId;
/**
* cate_id分类
*/