单菜票扩展纸张大小

This commit is contained in:
2026-05-15 16:22:10 +08:00
parent 732a4718f6
commit 052becc835

View File

@@ -71,8 +71,16 @@ public interface PrinterImpl {
private String out; private String out;
private String rs; private String rs;
/**
* 走纸
*/
public String out(int num) {
return StrUtil.format("<{}:{}>", out, num);
}
public String out() { public String out() {
return StrUtil.format("<{}:{}>", out, 180); return out(180);
} }
/** /**
@@ -481,8 +489,13 @@ public interface PrinterImpl {
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
builder.append(formatLabel(pickupNumber, signLabelInfo.centerBold)) builder.append(formatLabel(pickupNumber, signLabelInfo.centerBold))
.append(signLabelInfo.br); .append(signLabelInfo.br);
builder.append(signLabelInfo.br);
builder.append(signLabelInfo.br);
builder.append(signLabelInfo.br);
builder.append(formatLabel(StrUtil.format("时间:{}", DateUtil.format(orderDetail.getCreateTime(), "yyyy-MM-dd HH:mm:ss")), signLabelInfo.s, signLabelInfo.center)) builder.append(formatLabel(StrUtil.format("时间:{}", DateUtil.format(orderDetail.getCreateTime(), "yyyy-MM-dd HH:mm:ss")), signLabelInfo.s, signLabelInfo.center))
.append(signLabelInfo.br); .append(signLabelInfo.br);
builder.append(signLabelInfo.out(70));
Integer isWaitCall = ObjectUtil.defaultIfNull(orderDetail.getIsWaitCall(), 0); Integer isWaitCall = ObjectUtil.defaultIfNull(orderDetail.getIsWaitCall(), 0);
if (isWaitCall == 1) { if (isWaitCall == 1) {
if (!orderDetail.getProductName().contains("【等叫】")) { if (!orderDetail.getProductName().contains("【等叫】")) {