Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update
  • Loading branch information
yennanliu committed May 13, 2023
commit 224f12730a2b641cfb6de1dde865cad98f800835
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ public void up(Long spuId) {
// TODO : add default value to hotScore
esModel.setHotScore(0L);

System.out.println(">>> esModel = " + esModel);

// get brand, category name
BrandEntity brand = brandService.getById(esModel.getBrandId());
esModel.setBrandName(brand.getName());
Expand Down
22 changes: 22 additions & 0 deletions springEcommerceGuli/backend/sql/dml/dml_gulimall_pms.sql
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,25 @@ VALUES
(1, 1, 1, 'size'),
(2, 1, 2, 'length'),
(3, 1, 3, 'price');


-- create table pms_category
-- (
-- cat_id bigint not null auto_increment comment '分类id',
-- name char(50) comment '分类名称',
-- parent_cid bigint comment '父分类id',
-- cat_level int comment '层级',
-- show_status tinyint comment '是否显示[0-不显示,1显示]',
-- sort int comment '排序',
-- icon char(255) comment '图标地址',
-- product_unit char(50) comment '计量单位',
-- product_count int comment '商品数量',
-- primary key (cat_id)
-- );


-- INSERT INTO pms_category (cat_id, name, show_status, product_unit, product_count)
-- VALUES
-- (1, 'category_1', 1, 'count', 100),
-- (2, 'category_2', 1, 'count', 100),
-- (3, 'category_3', 1, 'count', 100);