diff --git a/fuintAdmin/src/api/handover/handover.js b/fuintAdmin/src/api/handover/handover.js index 738955ae2..997d08388 100644 --- a/fuintAdmin/src/api/handover/handover.js +++ b/fuintAdmin/src/api/handover/handover.js @@ -51,3 +51,11 @@ export function handoverShiftPrintingReceipts(data) { data: data }) } +export function handoverShiftPrintingReceiptss(data) { + return request({ + url: '/business/handoverRecord/handoverShiftPrintingReceiptss', + method: 'post', + data: data + }) +} + diff --git a/fuintAdmin/src/views/handover/HandoverDetails.vue b/fuintAdmin/src/views/handover/HandoverDetails.vue index 0b20d56a3..ec41d974e 100644 --- a/fuintAdmin/src/views/handover/HandoverDetails.vue +++ b/fuintAdmin/src/views/handover/HandoverDetails.vue @@ -68,39 +68,39 @@
优惠金额
-
{{ orderSummary.allDis }}
-
-
-
退款金额
{{ orderSummary.oilRefund }}
+
+
退款金额
+
{{ orderSummary.oilPaid }}
+
挂账金额
-
--
+
{{ orderSummary.onAccount }}
会员消费
-
{{ orderSummary.allBalanceP }}
+
{{ orderSummary.consumptionMoney }}
实收金额
-
{{ orderSummary.allMoney }}
+
{{ orderSummary.receiptsMoney }}
充值金额
-
{{ orderSummary.cardPaid }}
+
{{ orderSummary.onAccount }}
充值赠送
-
{{ orderSummary.cardGiftPaid }}
+
{{ orderSummary.giftAccount }}
会员总余额
-
{{ orderSummary.points }}
+
{{ orderSummary.memberBalance }}
会员总积分
-
{{ orderSummary.sumnum }}
+
{{ orderSummary.memberPoints }}
@@ -117,18 +117,18 @@
营业总额
-
{{ orderSummary.allyingye1 }}
-
¥{{ orderSummary.allyingye }}
+
{{ orderSummary.oilOrder }}
+
¥{{ orderSummary.receiptsMoney }}
充值总额
-
{{ orderSummary.allchuzhika1 }}
-
¥{{ orderSummary.allchuzhika }}
+
{{ orderSummary.rechargeAll }}
+
¥{{ orderSummary.onAccount }}
合计
-
{{ orderSummary.allyingye1 + orderSummary.allchuzhika1 }}
-
¥{{ orderSummary.allyingye + orderSummary.allchuzhika }}
+
{{ orderSummary.orderall}}
+
¥{{ orderSummary.orderalls}}
@@ -143,9 +143,9 @@
实收金额
-
{{ calculateThePaymentMethod(item.payType) }}
-
{{ item.numberOfDeals }}
-
¥{{ item.paidAmount }}
+
{{item.payType}}
+
{{ item.orderNum }}
+
¥{{ item.truePay }}
@@ -160,9 +160,9 @@
实收金额
-
{{ item.oilName }}
-
{{ item.numberOfDeals }}
-
¥{{ item.paidAmount }}
+
{{ item.name }}
+
{{ item.orderNum }}
+
¥{{ item.payAmount }}
@@ -176,10 +176,10 @@
笔数
实收金额
-
-
{{ item.oilName }}
-
{{ item.numberOfDeals }}
-
¥{{ item.paidAmount }}
+
+
{{ item.name }}
+
{{ item.orderNum }}
+
¥{{ item.discountAmount }}
@@ -189,14 +189,14 @@
-
类型
+
油号
笔数
实收金额
-
-
{{ item.oilName }}
-
{{ item.numberOfDeals }}
-
¥{{ item.paidAmount }}
+
+
{{ item.name }}
+
{{ item.orderNum }}
+
¥{{ item.refMoney }}
@@ -210,10 +210,10 @@
笔数
实收金额
-
+
{{ item.name }}
-
{{ item.numberOfDeals ? item.numberOfDeals : '--' }}
-
¥{{ item.paidAmount ? item.paidAmount : '--' }}
+
{{ item.orderNum }}
+
¥{{ item.amount}}
@@ -227,10 +227,10 @@
笔数
实收金额
-
-
{{ calculateThePaymentMethod(item.payType) }}
-
{{ item.numberOfDeals ? item.numberOfDeals : '--' }}
-
¥{{ item.paidAmount ? item.paidAmount : '--' }}
+
+
{{item.payType}}
+
{{ item.orderNum}}
+
¥{{ item.rechargeBalance}}
@@ -244,10 +244,10 @@
笔数
实收金额
-
-
合计
-
{{ item.numberOfDeals ? item.numberOfDeals : '--' }}
-
¥{{ item.paidAmount ? item.paidAmount : '--' }}
+
+
{{ item.payType}}
+
{{ item.orderNums }}
+
¥{{item.orderNum}}
@@ -261,10 +261,10 @@
笔数
实收金额
-
-
{{ calculateThePaymentMethod(item.payType) }}
-
{{ item.numberOfDeals ? item.numberOfDeals : '--' }}
-
¥{{ item.paidAmount ? item.paidAmount : '--' }}
+
+
{{item.payType}}
+
{{ item.orderNum }}
+
¥{{ item.payAmount}}
@@ -278,10 +278,10 @@
笔数
实收金额
-
-
{{ calculateThePaymentMethod(item.payType) }}
-
{{ item.numberOfDeals ? item.numberOfDeals : '--' }}
-
¥{{ item.paidAmount ? item.paidAmount : '--' }}
+
+
{{item.payType }}
+
{{ item.orderNum}}
+
¥{{ item.amount}}
@@ -293,14 +293,14 @@
新增会员数
-
{{ orderSummary.sumnum }}
+
{{ memberStatistics.userNum }}
-
挂账归还统计(再处理)
+
挂账归还统计
@@ -309,9 +309,9 @@
实收金额
-
{{ item.name ? item.name : '--' }}
-
{{ item.numberOfDeals ? item.numberOfDeals : '--' }}
-
¥{{ item.paidAmount ? item.paidAmount : '--' }}
+
{{ item.status }}
+
{{ item.returnNum }}
+
¥{{ item.amount}}
@@ -325,10 +325,10 @@
笔数
实收金额
-
-
{{ item.name ? item.name : '--' }}
-
{{ item.numberOfDeals ? item.numberOfDeals : '--' }}
-
¥{{ item.paidAmount ? item.paidAmount : '--' }}
+
+
{{ item.name }}
+
{{ item.staffNum }}
+
¥{{ item.monye}}
@@ -353,7 +353,8 @@ import { getHandoverApi2, getHandoverListApi, printLocallyApi, - handoverShiftPrintingReceipts + handoverShiftPrintingReceipts, + handoverShiftPrintingReceiptss } from "@/api/handover/handover"; import {getStatisticsApi} from "@/api/order/order"; @@ -370,7 +371,33 @@ export default { data() { return { - + baseInfo : {}, + //汇总 + orderSummary : {}, + //支付 + paymentAggregation :[], + //油号 + oilNumberStatistics:[], + //优惠 + discountStatistics:[], + //退款 + backMoneyStatistics:[], + //挂账 + billingDetails :[], + //会员充值 + employeeStatistics:[], + //会员消费 + consumptionStatistics:[], + //便利店消费 + goodsNumberStatistics:[], + //积分 + integerNumberStatistics:[], + //会员新增统计 + memberStatistics:{}, + //挂账归还 + returnedToTheAccount:[], + //员工统计 + staffStatistics:[], tabs: [ "交接班", // "交接班1", @@ -387,14 +414,7 @@ export default { shiftHandoverList: '', handoverList: {}, handoverData: {}, - baseInfo: {}, - billingDetails: [], - employeeStatistics: [], greaseGunStatistics: [], - oilNumberStatistics: [], - orderSummary: {}, - paymentAggregation: [], - returnedToTheAccount: [], // base queryParams: { @@ -423,10 +443,10 @@ export default { }, created() { this.getList(); - this.getHandover(); - this.getStatistics(); - this.getStatus(); - this.getStaffList(); + //this.getHandover(); + // this.getStatistics(); + // this.getStatus(); + // this.getStaffList(); }, mounted() { this.queryParams.status = '统一交班'; @@ -436,8 +456,8 @@ export default { console.log("getHandover", this.queryParams) getHandoverApi2(this.queryParams).then(res => { // this.handoverList = res.data; - this.handoverData = res.data; - this.baseInfo = this.handoverData.baseInfo, + this.handoverData = res.data; + this.baseInfo = this.handoverData.baseInfo, this.billingDetails = this.handoverData.billingDetails, this.employeeStatistics = this.handoverData.employeeStatistics, this.greaseGunStatistics = this.handoverData.greaseGunStatistics, @@ -469,22 +489,53 @@ export default { this.tabindex = index }, getList() { - this.dateRange = [] - if (this.beginTime && this.endTime) { - this.dateRange.push(this.beginTime.toLocaleDateString()) - this.dateRange.push(this.endTime.toLocaleDateString()) - } - getHandoverListApi(this.addDateRange(this.queryParams, this.dateRange)).then(res => { + // this.dateRange = [] + // if (this.beginTime && this.endTime) { + // this.dateRange.push(this.beginTime.toLocaleDateString()) + // this.dateRange.push(this.endTime.toLocaleDateString()) + // } + // getHandoverListApi(this.addDateRange(this.queryParams, this.dateRange)).then(res => { + // this.dataList = res.data.records + // this.total = res.data.total + // + // }) + handoverShiftPrintingReceiptss(this.queryParams).then(res => { + this.handoverData = res.data; + this.baseInfo = this.handoverData.baseInfo, + //汇总 + this.orderSummary = this.handoverData.orderSummary, + //支付 + this.paymentAggregation = this.handoverData.paymentAggregation, + //油号 + this.oilNumberStatistics = this.handoverData.oilNumberStatistics, + //优惠 + this.discountStatistics = this.handoverData.discountStatistics, + //退款 + this.backMoneyStatistics = this.handoverData.backMoneyStatistics, + //挂账 + this.billingDetails = this.handoverData.billingDetails, + //会员充值 + this.employeeStatistics = this.handoverData.employeeStatistics, + //会员消费 + this.consumptionStatistics = this.handoverData.consumptionStatistics, + //便利店消费 + this.goodsNumberStatistics = this.handoverData.goodsNumberStatistics, + //积分 + this.integerNumberStatistics = this.handoverData.integerNumberStatistics, + //会员新增统计 + this.memberStatistics = this.handoverData.memberStatistics, + //挂账归还 + this.returnedToTheAccount = this.handoverData.returnedToTheAccount, + //员工统计 + this.staffStatistics = this.handoverData.staffStatistics, this.dataList = res.data.records this.total = res.data.total - }) }, getStatistics() { getStatisticsApi().then(res => { this.statisticsForm = res.data }) - console.log("123123123", this.statisticsForm) }, // 获取支付方式 diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/HandoverRecordController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/HandoverRecordController.java index bb89ddf35..c1403624d 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/HandoverRecordController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/HandoverRecordController.java @@ -200,5 +200,13 @@ public class HandoverRecordController extends BaseController { Map handAll=handoverRecordService.handover3(staffId); printerService.handoverShiftPrintingReceipt(handAll); } -} + /** + * 交接班打印 + * @return + */ + @PostMapping("handoverShiftPrintingReceiptss") + public ResponseObject handoverShiftPrintingReceiptss(Integer staffId) { + return getSuccessResult(handoverRecordService.handover3(staffId)); + } +} diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/HandoverRecordMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/HandoverRecordMapper.java index 6664d7b9d..1e1b1a7ac 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/HandoverRecordMapper.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/HandoverRecordMapper.java @@ -129,7 +129,7 @@ public interface HandoverRecordMapper { List> goodsNumberStatistics1(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("storeId") Integer storeId, @Param("staffId") Integer staffId); List> IntegerNumberStatistics1(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("storeId") Integer storeId, @Param("staffId") Integer staffId); - List> memberStatistics1(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("storeId") Integer storeId, @Param("staffId") Integer staffId); + Map memberStatistics1(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("storeId") Integer storeId, @Param("staffId") Integer staffId); List> returnedToTheAccount1(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("storeId") Integer storeId,@Param("staffId") Integer staffId); List> staffStatistics(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("storeId") Integer storeId,@Param("staffId") Integer staffId); diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/HandoverRecordMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/HandoverRecordMapper.xml index ba0cf7073..019a38842 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/HandoverRecordMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/HandoverRecordMapper.xml @@ -596,7 +596,7 @@ limit 1 and create_time BETWEEN #{startTime} AND #{endTime}) onAccount, sum(if(type='3',pay_money,0.00)) consumptionMoney, IFNULL(sum(pay_money),0.00) receiptsMoney, - (select IFNULL(sum(pay_amount),0.00) from card_value_record where store_id = #{storeId} + (select IFNULL(sum(recharge_balance),0.00) from card_value_record where store_id = #{storeId} and create_time BETWEEN #{startTime} AND #{endTime}) onAccount, (select IFNULL(sum(gift_balance),0.00) from card_value_record where store_id = #{storeId} and create_time BETWEEN #{startTime} AND #{endTime}) giftAccount, @@ -604,8 +604,8 @@ limit 1 and create_time BETWEEN #{startTime} AND #{endTime}) memberBalance, (select IFNULL(sum(points),0.00) from mt_user_balance where store_id = #{storeId} and create_time BETWEEN #{startTime} AND #{endTime}) memberPoints, - (select IFNULL(sum(amount),0.00) from card_value_record where store_id = #{storeId} - and create_time BETWEEN #{startTime} AND #{endTime}) rechargeAll + (select IFNULL(sum(bid_balance),0.00) from card_value_record where store_id = #{storeId} + and create_time BETWEEN #{startTime} AND #{endTime}) rechargeAll from all_order_info where store_id = #{storeId} and create_time BETWEEN #{startTime} AND #{endTime} @@ -627,9 +627,9 @@ limit 1 when pay_type = 'car_card_value' then '车队卡' when pay_type = 'car_fule_card' then '车队囤油卡' when pay_type = 'after_pay' then '挂账' - else '未知' end as payType + else '未知' end as payType, COUNT(id) as orderNum, - IFNULL(sum(pay_money)) as truePay + IFNULL(sum(pay_money),0.00) as truePay from all_order_info where store_id = #{storeId} and create_time BETWEEN #{startTime} AND #{endTime} @@ -640,23 +640,35 @@ limit 1 @@ -716,9 +737,10 @@ limit 1 when payment_type = 'car_card_value' then '车队卡' when payment_type = 'car_fule_card' then '车队囤油卡' when payment_type = 'after_pay' then '挂账' + when payment_type is null then '合计' else '未知' end as payType, COUNT(id) orderNum, - SUM(recharge_balance) rechargeBalance + IFNULL(SUM(recharge_balance),0.00) rechargeBalance from card_value_record where store_id = #{storeId} and create_time BETWEEN #{startTime} AND #{endTime} @@ -731,8 +753,8 @@ limit 1 @@ -775,9 +796,10 @@ limit 1 when pay_type = 'car_card_value' then '车队卡' when pay_type = 'car_fule_card' then '车队囤油卡' when pay_type = 'after_pay' then '挂账' + when pay_type is null then '合计' else '未知' end as payType, - COUNT(id), - sum(pay_amount) payAmount + COUNT(id) as orderNum, + IFNULL(sum(pay_amount),0.00) payAmount FROM mt_order where @@ -799,9 +821,10 @@ limit 1 when payment_type = 'car_card_value' then '车队卡' when payment_type = 'car_fule_card' then '车队囤油卡' when payment_type = 'after_pay' then '挂账' + when payment_type is null then '合计' else '未知' end as payType, - COUNT(id), - sum(amount) amount + COUNT(id) as orderNum, + IFNULL(sum(amount),0.00) amount FROM integral_orders where @@ -831,9 +854,10 @@ limit 1 when status = 'car_card_value' then '车队卡' when status = 'car_fule_card' then '车队囤油卡' when status = 'after_pay' then '挂账' + when status is null then '合计' else '未知' end as status, count(id) returnNum, - sum(amount) amount + IFNULL(sum(amount),0.00) amount from return_record where @@ -843,15 +867,22 @@ limit 1 + + SELECT case + when a.`name` is not null then a.`name` + else '合计' + end as name, + COUNT(a.staffNum) staffNum, + IFNULL(SUM(a.monye), 0) monye + from (select + ta.real_name as name, + COUNT(aoi.id) as staffNum, + IFNULL(sum(pay_money), 0.00) as monye + from t_account ta + left join all_order_info aoi on ta.acct_id = aoi.create_by + where ta.store_id = #{storeId} + and aoi.create_time BETWEEN #{startTime} AND #{endTime}) a + GROUP BY a.`name` WITH ROLLUP + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/HandoverRecordServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/HandoverRecordServiceImpl.java index 70291fe04..d4aaad626 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/HandoverRecordServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/HandoverRecordServiceImpl.java @@ -1218,12 +1218,14 @@ public class HandoverRecordServiceImpl implements HandoverRecordService { handoverMap.put("baseInfo",baseInfo); // 获取订单汇总 Map orderSummaryMap = orderSummary1(startTime, formattedEndTime, staffId); + orderSummaryMap.put("orderall",Double.valueOf(orderSummaryMap.get("oilOrder").toString())+Double.valueOf(orderSummaryMap.get("rechargeAll").toString())); + orderSummaryMap.put("orderalls",Double.valueOf(orderSummaryMap.get("receiptsMoney").toString())+Double.valueOf(orderSummaryMap.get("onAccount").toString())); handoverMap.put("orderSummary",orderSummaryMap); // 支付方式汇总 List> paymentAggregationMap = paymentAggregation1(startTime, formattedEndTime, staffId); handoverMap.put("paymentAggregation",paymentAggregationMap); // 油号统计 - List> oilNumberStatisticsMap = oilNumberStatistics(startTime, formattedEndTime, staffId); + List> oilNumberStatisticsMap = oilNumberStatistics1(startTime, formattedEndTime, staffId); handoverMap.put("oilNumberStatistics",oilNumberStatisticsMap); // 优惠统计 List> discountStatisticsMap = discountStatistics(startTime, formattedEndTime, staffId); @@ -1245,9 +1247,9 @@ public class HandoverRecordServiceImpl implements HandoverRecordService { handoverMap.put("goodsNumberStatistics",goodsNumberStatistics); // 积分商城兑换信息 List> IntegerNumberStatistics = IntegerNumberStatistics1(startTime, formattedEndTime, staffId); - handoverMap.put("IntegerNumberStatistics",IntegerNumberStatistics); + handoverMap.put("integerNumberStatistics",IntegerNumberStatistics); // 会员新增统计 - List> memberStatisticsMap = memberStatistics1(startTime, formattedEndTime, staffId); + Map memberStatisticsMap = memberStatistics1(startTime, formattedEndTime, staffId); handoverMap.put("memberStatistics",memberStatisticsMap); // 挂账归还 List> returnedToTheAccountMap = returnedToTheAccount1(startTime, formattedEndTime, staffId) ; @@ -1383,9 +1385,9 @@ public class HandoverRecordServiceImpl implements HandoverRecordService { * @param staffId * @return */ - public List> memberStatistics1 (String startTime, String endTime, Integer staffId) { + public Map memberStatistics1 (String startTime, String endTime, Integer staffId) { AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); - List> oilNumberStatistics = handoverRecordMapper.memberStatistics1(startTime, endTime, nowAccountInfo.getStoreId(), staffId); + Map oilNumberStatistics = handoverRecordMapper.memberStatistics1(startTime, endTime, nowAccountInfo.getStoreId(), staffId); return oilNumberStatistics; } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/HandoverShiftPrintingReceipt.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/HandoverShiftPrintingReceipt.java index da1ad502f..05c37aa09 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/HandoverShiftPrintingReceipt.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/HandoverShiftPrintingReceipt.java @@ -4,6 +4,7 @@ import cn.hutool.core.util.ObjectUtil; import com.fuint.common.dto.AccountInfo; import com.fuint.common.util.TokenUtil; +import java.math.BigDecimal; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.HashMap; @@ -31,147 +32,131 @@ public class HandoverShiftPrintingReceipt { sb.append("结束时间:"+o.get("endTime") +"\r\n"); Map o1 = (Map)handover.get("orderSummary"); sb.append("订单金额:"+String.valueOf(o1.get("oilOrder"))+"\r\n"); - sb.append("优惠金额:"+String.valueOf(o1.get("allDis")) +"\r\n"); - sb.append("退款金额:"+String.valueOf(o1.get("oilRefund")) +"\r\n"); - sb.append("挂账金额:"+String.valueOf(o1.get("startTime")) +"\r\n"); - sb.append("消费金额:"+String.valueOf(o1.get("allBalanceP")) +"\r\n"); - sb.append("实收金额:"+String.valueOf(o1.get("allMoney")) +"\r\n"); - sb.append("充值金额:"+String.valueOf(o1.get("cardPaid")) +"\r\n"); - sb.append("充值赠送:"+String.valueOf(o1.get("cardGiftPaid")) +"\r\n"); - sb.append("会员总余额:"+String.valueOf(o1.get("points")) +"\r\n"); - sb.append("会员总积分:"+String.valueOf(o1.get("sumnum")) +"\r\n"); + sb.append("优惠金额:"+String.valueOf(o1.get("oilRefund")) +"\r\n"); + sb.append("退款金额:"+String.valueOf(o1.get("oilPaid")) +"\r\n"); + sb.append("挂账金额:"+String.valueOf(o1.get("onAccount")) +"\r\n"); + sb.append("消费金额:"+String.valueOf(o1.get("consumptionMoney")) +"\r\n"); + sb.append("实收金额:"+String.valueOf(o1.get("receiptsMoney")) +"\r\n"); + sb.append("充值金额:"+String.valueOf(o1.get("onAccount")) +"\r\n"); + sb.append("充值赠送:"+String.valueOf(o1.get("giftAccount")) +"\r\n"); + sb.append("会员总余额:"+String.valueOf(o1.get("memberBalance")) +"\r\n"); + sb.append("会员总积分:"+String.valueOf(o1.get("memberPoints")) +"\r\n"); sb.append("
---------------------------
"+"\r\n"); sb.append("
------营业收入统计------
"+"\r\n"); sb.append(""); sb.append(""); - sb.append(""); - sb.append(""); + sb.append(""); + sb.append(""); sb.append(""); - sb.append(""); - sb.append(""); + sb.append(""); + sb.append(""); sb.append(""); - sb.append(""); - sb.append(""); + sb.append(""); + sb.append(""); sb.append("
类型订单金额实收金额
营业总额"+String.valueOf(o1.get("allyingye1"))+""+ String.valueOf(o1.get("allyingye"))+"
"+String.valueOf(o1.get("oilOrder"))+""+ String.valueOf(o1.get("receiptsMoney"))+"
充值总额"+String.valueOf(o1.get("allchuzhika1"))+""+ String.valueOf(o1.get("allchuzhika"))+"
"+String.valueOf(o1.get("rechargeAll"))+""+ String.valueOf(o1.get("onAccount"))+"
合计"+String.valueOf(o1.get("allyingye1"))+""+String.valueOf(o1.get("allchuzhika1"))+"
"+String.valueOf(o1.get("orderall"))+""+String.valueOf(o1.get("orderalls"))+"
"); sb.append("
------支付方式统计------
"+"\r\n"); sb.append(""); List> o2 = (List>)handover.get("paymentAggregation"); for(int i=0;i"); - }else if("WECHAT".equals(o2.get(i).get("payType"))){ - sb.append(""); - }else if("UNIONPAY".equals(o2.get(i).get("payType"))){ - sb.append(""); - }else if("CASH".equals(o2.get(i).get("payType"))){ - sb.append(""); - }else if("balance".equals(o2.get(i).get("payType"))){ - sb.append(""); - }else if("card_value".equals(o2.get(i).get("payType"))){ - sb.append(""); - }else { - sb.append(""); - } - sb.append(""); - sb.append(""); + sb.append(""); + sb.append(""); + sb.append(""); } sb.append("
支付方式笔数实收金额
支付宝
微信
银联二维码
现金
余额
油卡
其余"+String.valueOf(o2.get(i).get("numberOfDeals"))+""+ String.valueOf(o2.get(i).get("paidAmount"))+"
"+String.valueOf(o2.get(i).get("payType"))+""+String.valueOf(o2.get(i).get("orderNum"))+""+ String.valueOf(o2.get(i).get("truePay"))+"
"); sb.append("
------油品实收统计------
"+"\r\n"); sb.append(""); List> o3 = (List>)handover.get("oilNumberStatistics"); for(int m=0;m"); - sb.append(""); - sb.append(""); + sb.append(""); + sb.append(""); + sb.append(""); } sb.append("
油号笔数实收金额
"+String.valueOf(o3.get(m).get("oilName"))+""+String.valueOf(o3.get(m).get("numberOfDeals"))+""+ String.valueOf(o3.get(m).get("paidAmount"))+"
"+String.valueOf(o3.get(m).get("name"))+""+String.valueOf(o3.get(m).get("orderNum"))+""+ String.valueOf(o3.get(m).get("payAmount"))+"
"); sb.append("
------优惠统计------
"+"\r\n"); sb.append(""); - List> o4 = (List>)handover.get("oilNumberStatistics"); + List> o4 = (List>)handover.get("discountStatistics"); for(int m=0;m"); - sb.append(""); - sb.append(""); + sb.append(""); + sb.append(""); + sb.append(""); } sb.append("
油号笔数实收金额
"+String.valueOf(o4.get(m).get("oilName"))+""+String.valueOf(o4.get(m).get("numberOfDeals"))+""+ String.valueOf(o4.get(m).get("paidAmount"))+"
"+String.valueOf(o4.get(m).get("name"))+""+String.valueOf(o4.get(m).get("orderNum"))+""+ String.valueOf(o4.get(m).get("discountAmount"))+"
"); sb.append("
------退款统计------
"+"\r\n"); sb.append(""); - List> o5 = (List>)handover.get("oilNumberStatistics"); + List> o5 = (List>)handover.get("backMoneyStatistics"); for(int m=0;m"); - sb.append(""); - sb.append(""); + sb.append(""); + sb.append(""); + sb.append(""); } sb.append("
油号笔数实收金额
"+String.valueOf(o5.get(m).get("oilName"))+""+String.valueOf(o5.get(m).get("numberOfDeals"))+""+ String.valueOf(o5.get(m).get("paidAmount"))+"
"+String.valueOf(o5.get(m).get("name"))+""+String.valueOf(o5.get(m).get("orderNum"))+""+ String.valueOf(o5.get(m).get("refMoney"))+"
"); sb.append("
------挂账统计------
"+"\r\n"); sb.append(""); - List> o6 = (List>)handover.get("oilNumberStatistics"); + List> o6 = (List>)handover.get("billingDetails"); for(int m=0;m"); - sb.append(""); - sb.append(""); + sb.append(""); + sb.append(""); + sb.append(""); } sb.append("
关账单位笔数实收金额
"+String.valueOf(o6.get(m).get("oilName"))+""+String.valueOf(o6.get(m).get("numberOfDeals"))+""+ String.valueOf(o6.get(m).get("paidAmount"))+"
"+String.valueOf(o6.get(m).get("name"))+""+String.valueOf(o6.get(m).get("orderNum"))+""+ String.valueOf(o6.get(m).get("amount"))+"
"); sb.append("
------会员充值统计------
"+"\r\n"); - sb.append(""); - List> o7 = (List>)handover.get("oilNumberStatistics"); + sb.append("
支付放松笔数实收金额
"); + List> o7 = (List>)handover.get("employeeStatistics"); for(int m=0;m"); - sb.append(""); - sb.append(""); + sb.append(""); + sb.append(""); + sb.append(""); } sb.append("
支付方式笔数实收金额
"+String.valueOf(o7.get(m).get("oilName"))+""+String.valueOf(o7.get(m).get("numberOfDeals"))+""+ String.valueOf(o7.get(m).get("paidAmount"))+"
"+String.valueOf(o7.get(m).get("payType"))+""+String.valueOf(o7.get(m).get("orderNum"))+""+ String.valueOf(o7.get(m).get("rechargeBalance"))+"
"); sb.append("
------会员消费统计------
"+"\r\n"); - sb.append(""); - List> o8 = (List>)handover.get("oilNumberStatistics"); + sb.append("
支付放松笔数实收金额
"); + List> o8 = (List>)handover.get("consumptionStatistics"); for(int m=0;m"); - sb.append(""); - sb.append(""); + sb.append(""); + sb.append(""); + sb.append(""); } sb.append("
支付方式笔数实收金额
"+String.valueOf(o8.get(m).get("oilName"))+""+String.valueOf(o8.get(m).get("numberOfDeals"))+""+ String.valueOf(o8.get(m).get("paidAmount"))+"
"+String.valueOf(o8.get(m).get("payType"))+""+String.valueOf(o8.get(m).get("orderNums"))+""+ String.valueOf(o8.get(m).get("orderNum"))+"
"); sb.append("
------便利店统计------
"+"\r\n"); - sb.append(""); - List> o9 = (List>)handover.get("oilNumberStatistics"); + sb.append("
支付放松笔数实收金额
"); + List> o9 = (List>)handover.get("goodsNumberStatistics"); for(int m=0;m"); - sb.append(""); - sb.append(""); + sb.append(""); + sb.append(""); + sb.append(""); } sb.append("
支付方式笔数实收金额
"+String.valueOf(o9.get(m).get("oilName"))+""+String.valueOf(o9.get(m).get("numberOfDeals"))+""+ String.valueOf(o9.get(m).get("paidAmount"))+"
"+String.valueOf(o9.get(m).get("payType"))+""+String.valueOf(o9.get(m).get("orderNum"))+""+ String.valueOf(o9.get(m).get("payAmount"))+"
"); sb.append("
------积分商城统计------
"+"\r\n"); sb.append(""); - List> o10 = (List>)handover.get("oilNumberStatistics"); + List> o10 = (List>)handover.get("integerNumberStatistics"); for(int m=0;m"); - sb.append(""); - sb.append(""); + sb.append(""); + sb.append(""); + sb.append(""); } sb.append("
支付方式笔数实收金额
"+String.valueOf(o10.get(m).get("oilName"))+""+String.valueOf(o10.get(m).get("numberOfDeals"))+""+ String.valueOf(o10.get(m).get("paidAmount"))+"
"+String.valueOf(o10.get(m).get("payType"))+""+String.valueOf(o10.get(m).get("orderNum"))+""+ String.valueOf(o10.get(m).get("amount"))+"
"); sb.append("
------新增会员统计------
"+"\r\n"); - sb.append(""); - List> o11 = (List>)handover.get("oilNumberStatistics"); - for(int m=0;m"); - sb.append(""); - } + + Map o11 = (Map)handover.get("memberStatistics"); + + sb.append("
新增会员数实收金额
"+String.valueOf(o11.get(m).get("oilName"))+""+ String.valueOf(o11.get(m).get("paidAmount"))+"
"); sb.append("
新增会员数"+ String.valueOf(o11.get("userNum"))+"
"); - sb.append("
------挂账会换统计(在处理)------
"+"\r\n"); - sb.append(""); - List> o12 = (List>)handover.get("oilNumberStatistics"); + sb.append("
------挂账归还统计------
"+"\r\n"); + sb.append("
支付放松笔数实收金额
"); + List> o12 = (List>)handover.get("returnedToTheAccount"); for(int m=0;m"); - sb.append(""); - sb.append(""); + sb.append(""); + sb.append(""); + sb.append(""); } sb.append("
支付方式笔数实收金额
"+String.valueOf(o12.get(m).get("oilName"))+""+String.valueOf(o12.get(m).get("numberOfDeals"))+""+ String.valueOf(o12.get(m).get("paidAmount"))+"
"+String.valueOf(o12.get(m).get("status"))+""+String.valueOf(o12.get(m).get("returnNum"))+""+ String.valueOf(o12.get(m).get("amount"))+"
"); sb.append("
------员工实收统计------
"+"\r\n"); - sb.append(""); - List> o13 = (List>)handover.get("oilNumberStatistics"); + sb.append("
支付放松笔数实收金额
"); + List> o13 = (List>)handover.get("staffStatistics"); for(int m=0;m"); - sb.append(""); - sb.append(""); + sb.append(""); + sb.append(""); + sb.append(""); } sb.append("
员工笔数实收金额
"+String.valueOf(o13.get(m).get("oilName"))+""+String.valueOf(o13.get(m).get("numberOfDeals"))+""+ String.valueOf(o13.get(m).get("paidAmount"))+"
"+String.valueOf(o13.get(m).get("name"))+""+String.valueOf(o13.get(m).get("staffNum"))+""+ String.valueOf(o13.get(m).get("monye"))+"
"); sb.append("--------------------------------\r\n");