修改打印小票
This commit is contained in:
@@ -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>");
|
||||
|
||||
Reference in New Issue
Block a user