热门类目增加封面图片和类目简称查询

This commit is contained in:
donqi 2022-12-05 23:37:04 +08:00
parent 750e56a66d
commit 0df88707ab
2 changed files with 10 additions and 1 deletions

View File

@ -51,6 +51,12 @@ public class DeptGoodsCategory extends GoodsCategory {
@Excel(name = "类别类型. 1.服务类 2.商品类", cellType = Excel.ColumnType.STRING) @Excel(name = "类别类型. 1.服务类 2.商品类", cellType = Excel.ColumnType.STRING)
private Integer type; private Integer type;
@Excel(name = "封面图片", cellType = Excel.ColumnType.STRING)
private String cover;
@Excel(name = "类别简称", cellType = Excel.ColumnType.STRING)
private String simpleGoodsCategoryName;
private Long parentCategoryId; private Long parentCategoryId;
private List<DeptGoodsCategory> child; private List<DeptGoodsCategory> child;

View File

@ -6,6 +6,8 @@
<result property="deptGoodsCategoryId" column="dept_goods_category_id"/> <result property="deptGoodsCategoryId" column="dept_goods_category_id"/>
<result property="deptId" column="dept_id"/> <result property="deptId" column="dept_id"/>
<result property="goodsCategoryId" column="goods_category_id"/> <result property="goodsCategoryId" column="goods_category_id"/>
<result property="cover" column="cover"/>
<result property="simpleGoodsCategoryName" column="simple_goods_category_name"/>
<result property="goodsCategoryName" column="goods_category_name"/> <result property="goodsCategoryName" column="goods_category_name"/>
<result property="deptCategoryName" column="dept_category_name" /> <result property="deptCategoryName" column="dept_category_name" />
<result property="parentCategoryId" column="parent_category_id" /> <result property="parentCategoryId" column="parent_category_id" />
@ -38,7 +40,8 @@
SELECT dgc.dept_goods_category_id, dgc.dept_id, dgc.goods_category_id, dgc.category_sort, SELECT dgc.dept_goods_category_id, dgc.dept_id, dgc.goods_category_id, dgc.category_sort,
dgc.one_rate, dgc.two_rate, dgc.three_rate, dgc.create_by, dgc.create_time, dgc.remark, dgc.one_rate, dgc.two_rate, dgc.three_rate, dgc.create_by, dgc.create_time, dgc.remark,
dgc.is_hot, dgc.dept_rate, dgc.dept_money, dgc.retain_rate, dgc.retain_money, dgc.is_hot, dgc.dept_rate, dgc.dept_money, dgc.retain_rate, dgc.retain_money,
dgc.dept_category_name, gc.goods_category_name, gc.level, gc.parent_category_id, gc.type, gc.status dgc.dept_category_name, gc.goods_category_name, gc.level, gc.parent_category_id, gc.type, gc.status,
gc.cover, gc.simple_goods_category_name
FROM dept_goods_category dgc LEFT JOIN goods_category gc ON dgc.goods_category_id = gc.goods_category_id FROM dept_goods_category dgc LEFT JOIN goods_category gc ON dgc.goods_category_id = gc.goods_category_id
</sql> </sql>