提交 f9147358 作者: xiaowang

修改:小程序端商品展示顺序

上级 81707c91
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
INNER JOIN mall_goods_resources img ON mg.id = img.mall_goods_id INNER JOIN mall_goods_resources img ON mg.id = img.mall_goods_id
AND img.type = 0 AND img.type = 0
<where> <where>
mg.is_deleted = 0 mg.is_deleted = 0 and mg.shelf_status = 1
<if test="userAccountId != null"> <if test="userAccountId != null">
and mg.user_account_id = #{userAccountId} and mg.user_account_id = #{userAccountId}
</if> </if>
...@@ -33,5 +33,7 @@ ...@@ -33,5 +33,7 @@
</foreach> </foreach>
</if> </if>
</where> </where>
ORDER BY
mg.sort DESC,mg.create_time DESC
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论