Commit 378a78d0 authored by 赵鹏翔's avatar 赵鹏翔

update

parent 08b6357e
...@@ -102,7 +102,7 @@ object PrintService { ...@@ -102,7 +102,7 @@ object PrintService {
printer.printText( printer.printText(
IPrinter.ALIGN_LEFT, IPrinter.ALIGN_LEFT,
3, 3,
" ${MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag).desc}", " ${MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag)?.desc}",
true true
) )
printer.printText(Page58MmPrintUtils.printDivideLineString()) printer.printText(Page58MmPrintUtils.printDivideLineString())
...@@ -138,7 +138,7 @@ object PrintService { ...@@ -138,7 +138,7 @@ object PrintService {
//平台优惠 //平台优惠
val platformCoupon = couponDetail[2] val platformCoupon = couponDetail[2]
val channel = val channel =
MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag).desc MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag)?.desc
printer.printText( printer.printText(
"$channel 优惠:${ "$channel 优惠:${
StringPriceFormatUtils.transStringPriceToDecimalString( StringPriceFormatUtils.transStringPriceToDecimalString(
...@@ -186,7 +186,7 @@ object PrintService { ...@@ -186,7 +186,7 @@ object PrintService {
printer.printText( printer.printText(
IPrinter.ALIGN_LEFT, IPrinter.ALIGN_LEFT,
3, 3,
" ${MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag).desc}", " ${MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag)?.desc}",
true true
) )
printer.printText(Page58MmPrintUtils.printDivideLineString()) printer.printText(Page58MmPrintUtils.printDivideLineString())
...@@ -222,7 +222,7 @@ object PrintService { ...@@ -222,7 +222,7 @@ object PrintService {
//平台优惠 //平台优惠
val platformCoupon = couponDetail[2] val platformCoupon = couponDetail[2]
val channel = val channel =
MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag).desc MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag)?.desc
printer.printText( printer.printText(
"$channel 优惠:${ "$channel 优惠:${
StringPriceFormatUtils.transStringPriceToDecimalString( StringPriceFormatUtils.transStringPriceToDecimalString(
...@@ -336,7 +336,7 @@ object PrintService { ...@@ -336,7 +336,7 @@ object PrintService {
printer.printText( printer.printText(
IPrinter.ALIGN_LEFT, IPrinter.ALIGN_LEFT,
3, 3,
" 退款(${MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag).desc})", " 退款(${MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag)?.desc})",
true true
) )
printer.printText(Page58MmPrintUtils.printDivideLineString()) printer.printText(Page58MmPrintUtils.printDivideLineString())
...@@ -374,7 +374,7 @@ object PrintService { ...@@ -374,7 +374,7 @@ object PrintService {
//平台优惠 //平台优惠
val platformCoupon = couponDetail[2] val platformCoupon = couponDetail[2]
val channel = val channel =
MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag).desc MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag)?.desc
printer.printText( printer.printText(
"$channel 优惠:${ "$channel 优惠:${
StringPriceFormatUtils.transStringPriceToDecimalString( StringPriceFormatUtils.transStringPriceToDecimalString(
...@@ -421,7 +421,7 @@ object PrintService { ...@@ -421,7 +421,7 @@ object PrintService {
printer.printText( printer.printText(
IPrinter.ALIGN_LEFT, IPrinter.ALIGN_LEFT,
3, 3,
" 退款(${MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag).desc})", " 退款(${MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag)?.desc})",
true true
) )
printer.printText(Page58MmPrintUtils.printDivideLineString()) printer.printText(Page58MmPrintUtils.printDivideLineString())
...@@ -459,7 +459,7 @@ object PrintService { ...@@ -459,7 +459,7 @@ object PrintService {
//平台优惠 //平台优惠
val platformCoupon = couponDetail[2] val platformCoupon = couponDetail[2]
val channel = val channel =
MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag).desc MiYaPayPlantformPayWayEnum.MiyaPayType.find(payServiceResponse.chanelTag)?.desc
printer.printText( printer.printText(
"$channel 优惠:${ "$channel 优惠:${
StringPriceFormatUtils.transStringPriceToDecimalString( StringPriceFormatUtils.transStringPriceToDecimalString(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment