打印样式修改

This commit is contained in:
谭凯凯
2024-10-15 09:28:54 +08:00
committed by Tankaikai
parent b9a2c3db5c
commit 182c0d3eee

View File

@@ -2,6 +2,7 @@ package com.chaozhanggui.system.cashierservice.util;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.chaozhanggui.system.cashierservice.model.OrderDetailPO;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.http.HttpEntity;
@@ -19,7 +20,6 @@ import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
public class FeieyunPrintUtil {
@@ -125,11 +125,11 @@ public class FeieyunPrintUtil {
builder.append("<L>时间: "+date+" </L><BR><BR><BR>");
if(productName.length()>4||remark.length()>4){
builder.append("<B><BOLD>"+productName+" "+number+"</BOLD></B><BR><BR>");
builder.append("<B><BOLD>"+remark+" </BOLD></B><BR><BR><BR>");
builder.append("<B><BOLD>"+productName+" x "+number+"</BOLD></B><BR><BR>");
builder.append("<B><BOLD>"+StrUtil.emptyToDefault(remark,"")+" </BOLD></B><BR><BR><BR>");
}else {
builder.append("<B><BOLD>"+productName+" "+number+"</BOLD></B><BR><BR>");
builder.append("<B><BOLD>"+remark+" </BOLD></B><BR><BR><BR>");
builder.append("<B><BOLD>"+productName+" x "+number+"</BOLD></B><BR><BR>");
builder.append("<B><BOLD>"+StrUtil.emptyToDefault(remark,"")+" </BOLD></B><BR><BR><BR>");
}
// builder.append("<CUT>");