修改公司类目排序 ORDER BY gc.level, dgc.category_sort

This commit is contained in:
HH 2023-03-23 21:44:22 +08:00
parent 8ba5a72c87
commit 4357387a54
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@
and dgc.dept_goods_category_id = #{deptGoodsCategoryId} and dgc.dept_goods_category_id = #{deptGoodsCategoryId}
</if> </if>
</where> </where>
ORDER BY dgc.category_sort ORDER BY gc.level, dgc.category_sort
</select> </select>
<update id="updateDeptGoodsCategory" parameterType="com.ghy.goods.domain.DeptGoodsCategory"> <update id="updateDeptGoodsCategory" parameterType="com.ghy.goods.domain.DeptGoodsCategory">
@ -158,7 +158,7 @@
AND gc.type = #{type} AND gc.type = #{type}
</if> </if>
</where> </where>
ORDER BY dgc.category_sort ORDER BY gc.level, dgc.category_sort
</select> </select>
<select id="selectById" parameterType="long" resultMap="DeptGoodsCategoryResult"> <select id="selectById" parameterType="long" resultMap="DeptGoodsCategoryResult">