|
|
@ -73,7 +73,7 @@ |
|
|
|
bdk_date,t.rzh_back_msg,t.in_account_status,t.payment_status,date_format(t.payment_date,'%Y-%m-%d')payment_date, |
|
|
|
bdk_date,t.rzh_back_msg,t.in_account_status,t.payment_status,date_format(t.payment_date,'%Y-%m-%d')payment_date, |
|
|
|
voucher_number,t.ele_invoice_no, sn_voucher_number, account_period, posting_time ,image_id |
|
|
|
voucher_number,t.ele_invoice_no, sn_voucher_number, account_period, posting_time ,image_id |
|
|
|
from t_dx_record_invoice t |
|
|
|
from t_dx_record_invoice t |
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{kpksrq} and #{kpjsrq} |
|
|
|
WHERE t.invoice_date between #{kpksrq} and #{kpjsrq} |
|
|
|
and (t.invoice_type in('01','03','08','14','31','283','161','183','185') or (t.invoice_type ='32' and t.lq_tdyslxDm='08')) |
|
|
|
and (t.invoice_type in('01','03','08','14','31','283','161','183','185') or (t.invoice_type ='32' and t.lq_tdyslxDm='08')) |
|
|
|
and t.bdk_status in ('1','2') |
|
|
|
and t.bdk_status in ('1','2') |
|
|
|
and t.export_mark = '0' |
|
|
|
and t.export_mark = '0' |
|
|
@ -353,7 +353,7 @@ |
|
|
|
resultMap="RzcxhjResultMap" databaseId="mysql"> |
|
|
|
resultMap="RzcxhjResultMap" databaseId="mysql"> |
|
|
|
select count(1) hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse |
|
|
|
select count(1) hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse |
|
|
|
from t_dx_record_invoice t |
|
|
|
from t_dx_record_invoice t |
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{kpksrq} and #{kpjsrq} |
|
|
|
WHERE t.invoice_date between #{kpksrq} and #{kpjsrq} |
|
|
|
and (t.invoice_type in('01','03','08','14','31','283','161','183','185') or (t.invoice_type ='32' and t.lq_tdyslxDm='08')) |
|
|
|
and (t.invoice_type in('01','03','08','14','31','283','161','183','185') or (t.invoice_type ='32' and t.lq_tdyslxDm='08')) |
|
|
|
and t.auth_status != '0' |
|
|
|
and t.auth_status != '0' |
|
|
|
and t.bdk_status in ('1','2') |
|
|
|
and t.bdk_status in ('1','2') |
|
|
|