消费明细报表-导出,调整字段顺序6

This commit is contained in:
fansongsong
2025-12-19 16:50:43 +08:00
parent 3500408271
commit ef4b27f560
2 changed files with 6 additions and 4 deletions
@@ -387,9 +387,9 @@ public class StBbzxOrderInfoController {
// String exportFields = "serialNo|交易流水号,orderNo|交易单号,userName|姓名,phone|手机号,workNo|工号," +
// "statusName|操作类型,transactionAmount|交易金额,paymentMethodName|结账方式,storedBalance|储值金额变动(元),rewardBalance|赠送金额变动(元),availableBalance|余额," +
// "integralBalance|积分变动,createTime|交易时间,payTime|结账时间,updateStatusName|操作端,createOne|操作人";
String exportFields = "userName|姓名,deptName|部门,phone|手机号,workNo|工号,restName|食堂名称," +
"transactionAmount|交易金额,statusName|操作类型,paymentMethodName|充值方式,availableBalance|现金余额," +
"createTime|充值时间,createOne|操作人";
String exportFields = "workNo|工号,userName|姓名,restName|充值食堂名称,transactionAmount|交易金额,statusName|操作类型," +
"availableBalance|现金余额," +
"createTime|充值时间,phone|手机号";
ExcelUtils.export(response, "充值记录", statisticsCanteenBusiness, exportFields, "yyyy-MM-dd HH:mm",true);
}
@@ -235,6 +235,7 @@
SUM(oi.order_price) orderPrice,
(SELECT COUNT(DISTINCT member_id) FROM st_bbzx_order_info WHERE eat_day = oi.eat_day and `status` = 5
and order_type = 3
AND canteen_id = oi.canteen_id
<if test="list != null and list.size() > 0">
and canteen_id IN
<foreach collection="list" item="canteenId" separator="," open="(" close=")" >
@@ -262,7 +263,8 @@
</if>
GROUP BY
oi.canteen_id,
oi.eat_day
oi.eat_day,
r.rest_name
order by oi.eat_day desc
</select>
<select id="statisticsTheAmountSpentEveryMember"