diff --git a/cash-api/product-server/src/main/java/com/czg/controller/user/HomeController.java b/cash-api/product-server/src/main/java/com/czg/controller/user/HomeController.java index 47cf634c..d2c3a5be 100644 --- a/cash-api/product-server/src/main/java/com/czg/controller/user/HomeController.java +++ b/cash-api/product-server/src/main/java/com/czg/controller/user/HomeController.java @@ -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 商品列表 */ diff --git a/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml b/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml index a707adbd..51b2bbd7 100644 --- a/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml +++ b/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml @@ -190,6 +190,10 @@ ORDER BY a.sale_price + + ORDER BY c.create_time desc + + update tb_product