Pārlūkot izejas kodu

今日菜品数据早餐午餐晚餐分类

王先生 2 gadi atpakaļ
vecāks
revīzija
266847f544

+ 1 - 1
eladmin-system/src/main/java/me/zhengjie/modules/dm/foodCate/repository/DmFoodCateRepository.java

@@ -34,7 +34,7 @@ import java.util.Map;
 **/
 public interface DmFoodCateRepository extends JpaRepository<DmFoodCate, Integer>, JpaSpecificationExecutor<DmFoodCate> {
 
-    @Query(value = "SELECT p.times,p.pcid,p.`name`,c.cate_id,c.cate_name,t.url,p.price,COUNT(p.`name`) AS `no` FROM dm_day_pc p " +
+    @Query(value = "SELECT p.times,p.pcid,p.`name`,c.cate_id,c.pid,c.cate_name,t.url,p.price,p.`no` AS `no` FROM dm_day_pc p " +
             "LEFT JOIN dm_food_cate c ON c.cate_id = p.cate LEFT JOIN tool_local_storage t ON " +
             "c.url = t.storage_id WHERE date_format(p.date,'%Y-%m-%d') = date_format(now(),'%Y-%m-%d') GROUP BY p.`name`",nativeQuery = true)
     List<Map<String,Object>> foodApp();