|
@@ -34,7 +34,7 @@ import java.util.Map;
|
|
|
**/
|
|
|
public interface DmFoodCateRepository extends JpaRepository<DmFoodCate, Integer>, JpaSpecificationExecutor<DmFoodCate> {
|
|
|
|
|
|
- @Query(value = "SELECT 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.cate_name,t.url,p.price,COUNT(p.`name`) 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();
|