修改打印小票

This commit is contained in:
牛叉闪闪 2024-08-29 10:14:20 +08:00
parent 1192f454aa
commit b18ab44412
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,8 @@ import com.chaozhanggui.system.cashierservice.entity.po.ProductInfo;
import com.chaozhanggui.system.cashierservice.entity.po.ProductInfoPO;
import com.chaozhanggui.system.cashierservice.model.HandoverInfo;
import com.chaozhanggui.system.cashierservice.model.OrderDetailPO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
@ -20,6 +22,7 @@ import java.util.*;
*/
public class PrinterUtils {
private static final Logger log= LoggerFactory.getLogger(PrinterUtils.class);
//请求地址
private static final String URL_STR = "https://ioe.car900.com/v1/openApi/dev/customPrint.json";
//APPID
@ -97,6 +100,8 @@ public class PrinterUtils {
public static String getCashPrintData(OrderDetailPO detailPO, String type, String orderType) {
log.info("getCashPrintData detailPO:{},type:{},orderType:{}",JSONUtil.toJSONString(detailPO),type,orderType);
StringBuilder sb = new StringBuilder();
sb.append("<C><B>" + detailPO.getMerchantName() + "</B></C><BR><BR>");