订单总额

This commit is contained in:
2026-04-07 16:32:41 +08:00
parent be476453a4
commit 29681c0ae2
6 changed files with 15 additions and 2 deletions

View File

@@ -58,6 +58,10 @@ public class HandoverRecordDTO implements Serializable {
* 营业额
*/
private BigDecimal turnover;
/**
* 订单额
*/
private BigDecimal orderTurnover;
/**
* 现金收款 cash_pay

View File

@@ -58,6 +58,10 @@ public class HandoverRecord implements Serializable {
* 营业额
*/
private BigDecimal turnover;
/**
* 订单额
*/
private BigDecimal orderTurnover;
/**
* 现金收款 cash_pay

View File

@@ -58,6 +58,10 @@ public class HandoverTotalVo implements Serializable {
* 营业额
*/
private BigDecimal turnover;
/**
* 订单额
*/
private BigDecimal orderTurnover;
/**
* 现金收款 cash_pay

View File

@@ -93,6 +93,7 @@ public class HandoverRecordServiceImpl extends ServiceImpl<HandoverRecordMapper,
CopyOptions copyOptions = CopyOptions.create().setIgnoreNullValue(true);
if (onlinePayTypeDate != null) {
BeanUtil.copyProperties(onlinePayTypeDate, data, copyOptions);
data.setTurnover(onlinePayTypeDate.getOrderTurnover());
}
HandoverRecord handoverRecord = orderInfoRpcService.countShopUserFlow(shopId, loginTimeStr, handoverTimeStr);
if(handoverRecord != null){

View File

@@ -48,7 +48,7 @@ public interface OrderInfoMapper extends BaseMapper<OrderInfo> {
* 订单支付方式统计 当日实时数据
*/
@Select("SELECT" +
" SUM(tb_order_info.pay_amount) AS turnover," +
" SUM(tb_order_info.pay_amount) AS orderTurnover," +
" SUM(CASE WHEN pay_type = 'main_scan' THEN pay_amount ELSE 0 END) AS selfScan," +
" SUM(CASE WHEN pay_type = 'back_scan' THEN pay_amount ELSE 0 END) AS barScan," +
" SUM(CASE WHEN pay_type = 'wechat_mini' THEN pay_amount ELSE 0 END) AS wechat," +

View File

@@ -205,7 +205,7 @@ public interface PrinterImpl {
.append(getFormatLabel(leftRightAlign(" 退款金额:", handoverRecord.getRefundAmount().toPlainString(), 32), signLabelInfo.s)).append(signLabelInfo.br)
.append(getFormatLabel(leftRightAlign(" 退菜数量:", handoverRecord.getReturnDishCount().toString(), 32), signLabelInfo.s)).append(signLabelInfo.br)
.append(getFormatLabel("--------------------------------", signLabelInfo.s)).append(signLabelInfo.br)
.append(getFormatLabel(leftRightAlign("订单数量/订单总额", handoverRecord.getOrderCount() + "/" + handoverRecord.getTurnover(), 32), signLabelInfo.s)).append(signLabelInfo.br)
.append(getFormatLabel(leftRightAlign("订单数量/订单总额", handoverRecord.getOrderCount() + "/" + handoverRecord.getOrderTurnover(), 32), signLabelInfo.s)).append(signLabelInfo.br)
.append(getFormatLabel("----------- 销售数据 -----------", signLabelInfo.s)).append(signLabelInfo.br)
.append(getFormatLabel(formatItemLine("商品分类", "数量", "总计", 14, 8), signLabelInfo.s))
.append(signLabelInfo.br);