|
|
@ -66,6 +66,8 @@ public class SpPrinterTemplate { |
|
|
|
String oilNo, |
|
|
|
String oilNo, |
|
|
|
String oilLiters, |
|
|
|
String oilLiters, |
|
|
|
String orderPrice, |
|
|
|
String orderPrice, |
|
|
|
|
|
|
|
String discountPrice, |
|
|
|
|
|
|
|
String actualPayment, |
|
|
|
Map<String, Object> receiptMap, |
|
|
|
Map<String, Object> receiptMap, |
|
|
|
boolean makeUp) { |
|
|
|
boolean makeUp) { |
|
|
|
|
|
|
|
|
|
|
@ -84,8 +86,12 @@ public class SpPrinterTemplate { |
|
|
|
"升数:" + oilLiters +"升<BR>" + |
|
|
|
"升数:" + oilLiters +"升<BR>" + |
|
|
|
"实际加油升数以油站加油机为准!<BR>" + |
|
|
|
"实际加油升数以油站加油机为准!<BR>" + |
|
|
|
"------------------------------<BR>" + |
|
|
|
"------------------------------<BR>" + |
|
|
|
"<L1>加油金额</L1><BR>" + |
|
|
|
"加油金额:"+ orderPrice + "元<BR>" + |
|
|
|
"<L1>¥" + orderPrice + "元</L1><BR>" + |
|
|
|
"优惠金额:" + discountPrice + "元<BR>" + |
|
|
|
|
|
|
|
"------------------------------<BR>" + |
|
|
|
|
|
|
|
"实际支付:" + actualPayment +"元<BR>" + |
|
|
|
|
|
|
|
/* "<L1>加油金额</L1><BR>" + |
|
|
|
|
|
|
|
"<L1>¥" + orderPrice + "元</L1><BR>" +*/ |
|
|
|
"------------------------------<BR>" + |
|
|
|
"------------------------------<BR>" + |
|
|
|
"<C><B>"+ (StringUtils.isNotBlank(MapUtils.getString(receiptMap, "receiptBottom"))?MapUtils.getString(receiptMap, "receiptBottom"):"开心又省钱; 来"嗨加油"") + "</B></C>"; |
|
|
|
"<C><B>"+ (StringUtils.isNotBlank(MapUtils.getString(receiptMap, "receiptBottom"))?MapUtils.getString(receiptMap, "receiptBottom"):"开心又省钱; 来"嗨加油"") + "</B></C>"; |
|
|
|
return str; |
|
|
|
return str; |
|
|
@ -112,6 +118,8 @@ public class SpPrinterTemplate { |
|
|
|
String oilNo, |
|
|
|
String oilNo, |
|
|
|
String oilLiters, |
|
|
|
String oilLiters, |
|
|
|
String orderPrice, |
|
|
|
String orderPrice, |
|
|
|
|
|
|
|
String discountPrice, |
|
|
|
|
|
|
|
String actualPayment, |
|
|
|
Map<String, Object> receiptMap, |
|
|
|
Map<String, Object> receiptMap, |
|
|
|
boolean makeUp) throws Exception { |
|
|
|
boolean makeUp) throws Exception { |
|
|
|
String str = "<C><L1>" + (StringUtils.isNotBlank(MapUtils.getString(receiptMap, "receiptTop"))?MapUtils.getString(receiptMap, "receiptTop"):"嗨加油") + "</L1></C> <BR> " + |
|
|
|
String str = "<C><L1>" + (StringUtils.isNotBlank(MapUtils.getString(receiptMap, "receiptTop"))?MapUtils.getString(receiptMap, "receiptTop"):"嗨加油") + "</L1></C> <BR> " + |
|
|
@ -129,8 +137,12 @@ public class SpPrinterTemplate { |
|
|
|
"升数:" + oilLiters +"升<BR>" + |
|
|
|
"升数:" + oilLiters +"升<BR>" + |
|
|
|
"实际加油升数以油站加油机为准!<BR>" + |
|
|
|
"实际加油升数以油站加油机为准!<BR>" + |
|
|
|
"------------------------------<BR>" + |
|
|
|
"------------------------------<BR>" + |
|
|
|
"<L1>加油金额</L1><BR>" + |
|
|
|
"加油金额:"+ orderPrice + "元<BR>" + |
|
|
|
"<L1>¥" + orderPrice + "元</L1><BR>" + |
|
|
|
"优惠金额:" + discountPrice + "元<BR>" + |
|
|
|
|
|
|
|
"------------------------------<BR>" + |
|
|
|
|
|
|
|
"实际支付:" + actualPayment +"元<BR>" + |
|
|
|
|
|
|
|
/* "<L1>加油金额</L1><BR>" + |
|
|
|
|
|
|
|
"<L1>¥" + orderPrice + "元</L1><BR>" +*/ |
|
|
|
"------------------------------<BR>" + |
|
|
|
"------------------------------<BR>" + |
|
|
|
"<C><B>"+ (StringUtils.isNotBlank(MapUtils.getString(receiptMap, "receiptBottom"))?MapUtils.getString(receiptMap, "receiptBottom"):"开心又省钱; 来"嗨加油"") + "</B></C>"; |
|
|
|
"<C><B>"+ (StringUtils.isNotBlank(MapUtils.getString(receiptMap, "receiptBottom"))?MapUtils.getString(receiptMap, "receiptBottom"):"开心又省钱; 来"嗨加油"") + "</B></C>"; |
|
|
|
return str; |
|
|
|
return str; |
|
|
|