打印问题 加粗 备注
This commit is contained in:
@@ -70,8 +70,8 @@ public class PrintMqListener {
|
||||
printConfig.orderHandler(orderId, PrinterHandler.PrintTypeEnum.ORDER, null);
|
||||
}
|
||||
//菜品打印 全是后端
|
||||
printConfig.orderHandler(orderId, PrinterHandler.PrintTypeEnum.ONLY_KITCHEN, null);
|
||||
printConfig.orderHandler(orderId, PrinterHandler.PrintTypeEnum.ALL_KITCHEN, null);
|
||||
printConfig.orderHandler(orderId, PrinterHandler.PrintTypeEnum.ONLY_KITCHEN, null);
|
||||
return null;
|
||||
}, RedisCst.getLockKey("orderPrint", orderId));
|
||||
});
|
||||
|
||||
@@ -441,14 +441,14 @@ public interface PrinterImpl {
|
||||
});
|
||||
}
|
||||
}
|
||||
if (StrUtil.isNotBlank(detail.getRemark()) && "null".equals(detail.getRemark())) {
|
||||
if (StrUtil.isNotBlank(detail.getRemark()) && !"null".equals(detail.getRemark())) {
|
||||
data.append(getFormatLabel(StrUtil.format(" 备注:{}", detail.getRemark()), signLabelInfo.s)).append(signLabelInfo.br);
|
||||
}
|
||||
}
|
||||
data.append(getDividingLine())
|
||||
.append(signLabelInfo.br);
|
||||
}
|
||||
if (StrUtil.isNotBlank(orderPrintDTO.getRemark()) && "null".equals(orderPrintDTO.getRemark())) {
|
||||
if (StrUtil.isNotBlank(orderPrintDTO.getRemark()) && !"null".equals(orderPrintDTO.getRemark())) {
|
||||
data.append(getFormatLabel(StrUtil.format("备注: {}", orderPrintDTO.getRemark()), signLabelInfo.s)).append(signLabelInfo.br);
|
||||
data.append(getDividingLine()).append(signLabelInfo.br);
|
||||
}
|
||||
@@ -506,7 +506,7 @@ public interface PrinterImpl {
|
||||
.append(signLabelInfo.br);
|
||||
}
|
||||
}
|
||||
if (StrUtil.isNotBlank(orderDetail.getRemark())) {
|
||||
if (StrUtil.isNotBlank(orderDetail.getRemark()) && !"null".equals(orderDetail.getRemark())) {
|
||||
builder.append(getFormatLabel(StrUtil.format("备注:{}", orderDetail.getRemark()), signLabelInfo.f))
|
||||
.append(signLabelInfo.br);
|
||||
}
|
||||
|
||||
@@ -51,8 +51,7 @@ public class YxyPrinter extends PrinterHandler implements PrinterImpl {
|
||||
.setCenter(new String[]{"<C>", "</C>"})
|
||||
.setCenterBold(new String[]{"<CB>", "</CB>"})
|
||||
.setRs("RS")
|
||||
.setBr("<BR>")
|
||||
.setBold(new String[]{"<B>", "</B>"});
|
||||
.setBold(new String[]{"<BOLD>", "</BOLD>"});
|
||||
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user