小程序主页接口
This commit is contained in:
parent
d9b8aa3846
commit
89dea94258
|
|
@ -37,7 +37,7 @@ public class HomeController {
|
||||||
* @param lat 经度
|
* @param lat 经度
|
||||||
* @param address 城市
|
* @param address 城市
|
||||||
* @param categoryId 分类 0双人餐 1饮品明细 2咖啡饮品
|
* @param categoryId 分类 0双人餐 1饮品明细 2咖啡饮品
|
||||||
* @param orderType 排序规则 0离我最近 1销量优先 2价格优先
|
* @param orderType 排序规则 0离我最近 1销量优先 2价格优先 3上新
|
||||||
* @param distanceType 1000m 2000m
|
* @param distanceType 1000m 2000m
|
||||||
* @return 商品列表
|
* @return 商品列表
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -190,6 +190,10 @@
|
||||||
ORDER BY a.sale_price
|
ORDER BY a.sale_price
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
<if test="orderType == 3">
|
||||||
|
ORDER BY c.create_time desc
|
||||||
|
</if>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<update id="updateProductStockNum">
|
<update id="updateProductStockNum">
|
||||||
update tb_product
|
update tb_product
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue