Compare commits
2 Commits
24ea4bfc32
...
prod
| Author | SHA1 | Date | |
|---|---|---|---|
| 39bd0901a3 | |||
| 6a94645076 |
@@ -484,8 +484,8 @@ public interface PrinterImpl {
|
||||
* @param pickupNumber 取餐号
|
||||
* @return 元数据
|
||||
*/
|
||||
default String buildOnlyKitchenPrintData(String pickupNumber, OrderDetail orderDetail) {
|
||||
PrintSignLabel signLabelInfo = getSignLabelInfo();
|
||||
default String buildOnlyKitchenPrintData(Integer isCode, String pickupNumber, OrderDetail orderDetail) {
|
||||
PrintLabel signLabelInfo = getSignLabelInfo();
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append(formatLabel(pickupNumber, signLabelInfo.centerBold))
|
||||
.append(signLabelInfo.br);
|
||||
@@ -514,6 +514,7 @@ public interface PrinterImpl {
|
||||
if (isGift && !orderDetail.getProductName().contains("【赠】")) {
|
||||
orderDetail.setProductName("【赠】" + orderDetail.getProductName());
|
||||
}
|
||||
|
||||
if (orderDetail.getProductName().length() > 4) {
|
||||
builder.append(formatLabel(StrUtil.format("{} x {}", orderDetail.getProductName(), orderDetail.getNum().stripTrailingZeros().toPlainString()), signLabelInfo.f, signLabelInfo.center))
|
||||
.append(signLabelInfo.br);
|
||||
|
||||
Reference in New Issue
Block a user