商品类目表Mapper缺少了category_sort字段映射

This commit is contained in:
HH 2022-05-13 09:32:53 +08:00
parent bd01807460
commit 6a0f942ac9
2 changed files with 13 additions and 6 deletions

View File

@ -87,11 +87,11 @@
title: '三级分销扣点',
align: "left"
},
{
field: 'categorySort',
title: '排序',
align: "left"
},
// {
// field: 'categorySort',
// title: '排序',
// align: "left"
// },
{
field: 'status',
title: '状态',

View File

@ -7,6 +7,7 @@
<result property="goodsCategoryCode" column="goods_category_code" />
<result property="goodsCategoryName" column="goods_category_name" />
<result property="parentCategoryId" column="parent_category_id" />
<result property="categorySort" column="category_sort"/>
<result property="level" column="level" />
<result property="type" column="type" />
<result property="status" column="status" />
@ -29,6 +30,12 @@
<if test="goodsCategoryCode != null and goodsCategoryCode != ''">
AND goods_category_code like concat('%', #{goodsCategoryCode}, '%')
</if>
<if test="goodsCategoryName != null and goodsCategoryName != ''">
AND goods_category_name LIKE concat('%', #{goodsCategoryName}, '%')
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
</where>
</select>