This commit is contained in:
dzc committed 2026-08-27 22:21:35 +08:00
1 parent 9b66d2f99f
commit f8cf7c1aa9
2 files changed
+7 -4

No files matched your search

@@ -96,7 +96,7 @@ public interface HardCarMapper extends PjcloudBaseMapper<HardCarEntity> {
*
* @param page 分页参数
* @param dto 单日、来源、食堂、餐段、部门和商品名称筛选
* @return 按商品聚合的来源明细页
* @return 按商品名称、商品 ID、统计日期和来源升序排列的商品聚合明细页
*/
Page<HardCarVo> proudctQueryStats(Page page, @Param("dto") HardCarDto dto);
@@ -973,10 +973,10 @@
</if>
</where>
group by a.product_id
order by a.product_name asc, o.order_type asc, o.hour_type asc, SUM(a.product_count) desc
order by a.product_id desc, o.order_type asc, o.hour_type asc, SUM(a.product_count) desc
</select>
<!-- 新版菜品明细按来源查询,供主表“菜品详情”弹窗使用。 -->
<!-- 新版菜品明细按来源查询,供主表“菜品详情”弹窗使用,并按商品名称升序稳定展示。 -->
<select id="proudctQueryStats" resultType="com.bsd.pjcloud.hard.api.vo.order.HardCarVo">
select sale_stats.product_id,
sale_stats.product_name,
@@ -995,7 +995,10 @@
</where>
group by sale_stats.stat_date, sale_stats.sale_source, sale_stats.product_id,
sale_stats.product_name, sale_stats.product_pic, sale_stats.product_price
order by SUM(sale_stats.product_count) desc
order by sale_stats.product_name asc,
sale_stats.product_id asc,
sale_stats.stat_date asc,
sale_stats.sale_source asc
</select>
<select id="proudctMchQuery" resultType="com.bsd.pjcloud.hard.api.vo.order.HardCarVo">