小程序主页接口

This commit is contained in:
张松 2025-03-07 14:29:05 +08:00
parent d9b8aa3846
commit 89dea94258
2 changed files with 5 additions and 1 deletions

View File

@ -37,7 +37,7 @@ public class HomeController {
* @param lat 经度
* @param address 城市
* @param categoryId 分类 0双人餐 1饮品明细 2咖啡饮品
* @param orderType 排序规则 0离我最近 1销量优先 2价格优先
* @param orderType 排序规则 0离我最近 1销量优先 2价格优先 3上新
* @param distanceType 1000m 2000m
* @return 商品列表
*/

View File

@ -190,6 +190,10 @@
ORDER BY a.sale_price
</if>
<if test="orderType == 3">
ORDER BY c.create_time desc
</if>
</select>
<update id="updateProductStockNum">
update tb_product