|
@@ -309,6 +309,7 @@
|
|
|
,t.transamount
|
|
|
,t.payway
|
|
|
,t.invoiceId
|
|
|
+ ,ifnull(t.isprint,0) as "isprint"
|
|
|
,dict.label as"paywayLabel"
|
|
|
,t.transtype
|
|
|
,t.transtypeLabel
|
|
@@ -339,6 +340,7 @@
|
|
|
,min(payway) payway
|
|
|
,max(transtype) transtype
|
|
|
,max(invoiceId) as "invoiceId"
|
|
|
+ ,max(isprint) as "isprint"
|
|
|
,case when max(transtype) = 1 then '充值'
|
|
|
else (case when min(payway) = 5 then '扣费' else '缴费' end ) end transtypeLabel
|
|
|
from (
|
|
@@ -352,6 +354,7 @@
|
|
|
,max(canceltime) canceltime
|
|
|
,max(cancelperson) cancelperson
|
|
|
,max(invoice_id) as "invoiceId"
|
|
|
+ ,0 as "isprint"
|
|
|
from pay_pay_transactiondetails
|
|
|
where canceledrecord_id is null and payway !=5 and transtype!=2
|
|
|
and site_id=#{siteId} and customer_id = #{customerId}
|
|
@@ -390,6 +393,7 @@
|
|
|
,max(canceltime) canceltime
|
|
|
,max(cancelperson) cancelperson
|
|
|
,max(invoice_id) as "invoiceId"
|
|
|
+ ,max(isprint) as "isprint"
|
|
|
from pay_pay_received
|
|
|
where canceledrecord_id is null and payway !=5
|
|
|
and site_id=#{siteId} and customer_id = #{customerId}
|
|
@@ -458,6 +462,7 @@
|
|
|
,ab.type as "payway"
|
|
|
,dict.label as"paywayLabel"
|
|
|
,ifnull(r.invoiceId,t.invoiceId) invoiceId
|
|
|
+ ,ifnull(r.isprint,0) isprint
|
|
|
,ifnull(r.iscanceled,t.iscanceled) iscanceled
|
|
|
,ifnull(r.canceltime,t.canceltime) canceltime
|
|
|
,ifnull(r.cancelperson,t.cancelperson) cancelperson
|
|
@@ -489,6 +494,7 @@
|
|
|
office_id,payseriesno
|
|
|
,0 as transtype
|
|
|
,'缴费' transtypeLabel
|
|
|
+ ,max(isprint) isprint
|
|
|
,min(payway) payway
|
|
|
,max(invoice_id) as "invoiceId"
|
|
|
,max(iscanceled) iscanceled
|