From dcc53bf15d7a23797962e46d9885bd6dbf631473 Mon Sep 17 00:00:00 2001
From: Jack <46790855@qq.com>
Date: Sun, 10 Nov 2024 20:03:49 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A8=A1=E7=89=88=E7=A4=BA?=
=?UTF-8?q?=E4=BE=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
mall-shop/src/main/resources/templates/order_printer.txt | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/mall-shop/src/main/resources/templates/order_printer.txt b/mall-shop/src/main/resources/templates/order_printer.txt
index 2c4a477e..61a26f50 100644
--- a/mall-shop/src/main/resources/templates/order_printer.txt
+++ b/mall-shop/src/main/resources/templates/order_printer.txt
@@ -1,3 +1,7 @@
+原模版:
+${store_name}
--------------------------------
#${order_pickup_num_str}
买家备注:${order_message!'-'}
配送时间:${delivery_time}
--------------------------------
订单编号:${order_id}
订单来源:微信小程序
支付方式:微信支付
配送来源:顺丰同城
付款时间:${payment_time}
--------------------------------
商品名称 数量 金额
--------------------------------
<#list order_items as item>${item.s_name}${item.s_quantity}${item.s_amount}
<#if item.s_name_segs??><#list item.s_name_segs as seg>${seg}
#list>#if><#if item.product_sn?default("")?trim?length gt 1>${item.product_sn}
#if>#list>--------------------------------
商品总件数:${order_items_count!0}
商品总额:¥${order_product_amount?string('0.00')}
押金:¥${(yajin!0)?string('0.00')}
运费:¥${order_shipping_fee?string('0.00')}
会员权益:-¥${(quanyi!0)?string('0.00')}
秒杀:-¥${(miaosha!0)?string('0.00')}
实付金额:¥${order_payment_amount?string('0.00')}
<#if seller_message?default("")?trim?length gt 1>--------------------------------
商家备注:${seller_message!'---'}
#if>--------------------------------
收货人:${buyer_user_name!''}
收货人手机:${store_tel!''}
收货地址:${da_province!'-'}${da_city!'-'}${da_address!'-'}
--------------------------------
门店:${store_name}
门店电话:${store_tel!'-'}
收银员:${cashier!'-'}
+
+示例格式化后的:
小发同城
--------------------------------
#00019232
@@ -45,5 +49,5 @@
收银员:李小璐
-原文:
+格式化的示例:
小发同城
--------------------------------
#00019232
买家备注:不用敲门,放在门口旁边的外卖箱,打个电话告知送达就行,谢谢!!!
配送时间:2024-10-25 14:00-14:30
--------------------------------
订单编号:ES20231026111444527685
订单来源:微信小程序
支付方式:微信支付
配送来源:顺丰同城
付款时间:2024-10-25 14:00:23
--------------------------------
商品名称 数量 金额
--------------------------------
可口可乐CocaC x110 8100.45
ola经典美味汽水1.2
5L/瓶
6970448170051
排骨约350g(默 1 150.13
认砍小块)
6970448170053
新鲜虫草花1包约2 x11 4.01
00g 韭菜1000g 鸡蛋
2003克
6970448170054
冰红茶风味饮料 1 13.24
6970448170055
--------------------------------
商品总件数:3
商品总额:¥18.7
押金:¥500
运费:¥5.54
会员权益:-¥50
秒杀:-¥100
实付金额:¥428.9元
--------------------------------
商家备注:老顾客赠送一箱牛奶;玻璃瓶包装轻拿轻放!
--------------------------------
收货人:张三
收货人手机:13128778765
收货地址:北京市朝阳区朝阳路朝阳人民小区1号楼1栋1101
--------------------------------
门店:岛内价生活超市
门店电话:13665822542
收银员:李小璐
\ No newline at end of file