fix:菜品统计修改
This commit is contained in:
1 parent
e7420f1fa2
commit
999b3469be
1 file changed
+2
-2
+2
-2
@@ -52,7 +52,7 @@
|
||||
<select id="productTotal" resultType="com.bsd.pjcloud.hard.api.vo.order.HardCanteenProductTotalVo">
|
||||
select DATE_FORMAT(a.create_time, '%Y-%m-%d') as createTime,
|
||||
o.hour_type,
|
||||
COUNT(a.product_count) as payCount,
|
||||
SUM(a.product_count) as payCount,
|
||||
SUM(a.total_price) as totalPrice
|
||||
from hard_car a
|
||||
inner join hard_parent_car p on a.parent_car_id = p.id and p.del_flag = '0'
|
||||
@@ -113,7 +113,7 @@
|
||||
</if>
|
||||
</where>
|
||||
group by DATE_FORMAT(a.create_time, '%Y-%m-%d'), o.hour_type
|
||||
order by DATE_FORMAT(a.create_time, '%Y-%m-%d') desc, o.hour_type desc;
|
||||
order by DATE_FORMAT(a.create_time, '%Y-%m-%d') desc, o.hour_type;
|
||||
</select>
|
||||
|
||||
<select id="proudctQuery" resultType="com.bsd.pjcloud.hard.api.vo.order.HardCarVo">
|
||||
|
||||
Reference in new issue
Block a user