订单总额
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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," +
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user