|
|
|
@ -60,7 +60,7 @@ |
|
|
|
|
dqskssq,t.auth_status,t.qs_type,t.qs_status,t.confirm_user,t.qs_name,t.rzh_yesorno,t.cxrz_status,t.out_status, |
|
|
|
|
t.bdk_status,t.bdk_current_period,date_format(t.bdk_date,'%Y-%m-%d') |
|
|
|
|
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 |
|
|
|
|
voucher_number, sn_voucher_number, account_period, posting_time ,image_number |
|
|
|
|
from t_dx_record_invoice t |
|
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{kpksrq} and #{kpjsrq} |
|
|
|
|
|
|
|
|
@ -84,16 +84,31 @@ |
|
|
|
|
<if test="qsfs != null and qsfs != '' and qsfs != 'null'"> |
|
|
|
|
and t.qs_type = #{qsfs} |
|
|
|
|
</if> |
|
|
|
|
<if |
|
|
|
|
test="qsksrq != null and qsksrq != '' and qsksrq != 'null' and qsjsrq != null and qsjsrq != '' and qsjsrq != 'null'"> |
|
|
|
|
<if test="qszt != null and qszt != '' and qszt != 'null'"> |
|
|
|
|
and t.qs_status = #{qszt} |
|
|
|
|
</if> |
|
|
|
|
<if test="wrzfpStart != null and wrzfpStart != '' and wrzfpStart != 'null' and wrzfpEnd != null and wrzfpEnd != '' and wrzfpEnd != 'null'"> |
|
|
|
|
and rzh_yesorno = '0' and date_format(t.invoice_date,'%Y-%m-%d') between #{wrzfpStart} and #{wrzfpEnd} |
|
|
|
|
</if> |
|
|
|
|
<if test="qsksrq != null and qsksrq != '' and qsksrq != 'null' and qsjsrq != null and qsjsrq != '' and qsjsrq != 'null'"> |
|
|
|
|
and date_format(t.qs_date,'%Y-%m-%d') between #{qsksrq} and #{qsjsrq} |
|
|
|
|
</if> |
|
|
|
|
<if |
|
|
|
|
test="rzksrq != null and rzksrq != '' and rzksrq != 'null' and rzjsrq != null and rzjsrq != '' and rzjsrq != 'null'"> |
|
|
|
|
<if test="rzksrq != null and rzksrq != '' and rzksrq != 'null' and rzjsrq != null and rzjsrq != '' and rzjsrq != 'null'"> |
|
|
|
|
and date_format(t.rzh_date,'%Y-%m-%d') between #{rzksrq} and #{rzjsrq} |
|
|
|
|
</if> |
|
|
|
|
<if test="accountPeriodStart != null and accountPeriodStart != '' and accountPeriodStart != 'null' |
|
|
|
|
and accountPeriodEnd != null and accountPeriodEnd != '' and accountPeriodEnd != 'null'"> |
|
|
|
|
and date_format(t.account_period,'%Y-%m') between #{accountPeriodStart} and #{accountPeriodEnd} |
|
|
|
|
</if> |
|
|
|
|
<if test="postingTimeStart != null and postingTimeStart != '' and postingTimeStart != 'null' |
|
|
|
|
and postingTimeEnd != null and postingTimeEnd != '' and postingTimeEnd != 'null'"> |
|
|
|
|
and date_format(t.posting_time,'%Y-%m-%d') between #{postingTimeStart} and #{postingTimeEnd} |
|
|
|
|
</if> |
|
|
|
|
<if test="rzzt != null and rzzt != '' and rzzt != 'null' "> |
|
|
|
|
and t.rzh_yesorno = #{rzzt} |
|
|
|
|
</if> |
|
|
|
|
<if test="imageNumber != null and imageNumber != '' and imageNumber != 'null' "> |
|
|
|
|
and t.image_number = #{imageNumber} |
|
|
|
|
</if> |
|
|
|
|
<if test="rzclzt !=null and rzclzt != ''"> |
|
|
|
|
and t.auth_status = #{rzclzt} |
|
|
|
@ -145,6 +160,9 @@ |
|
|
|
|
<if |
|
|
|
|
test="skssq != null and skssq != '' and skssq != 'null' "> |
|
|
|
|
and t.rzh_belong_date = #{skssq} |
|
|
|
|
</if> |
|
|
|
|
<if test="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' "> |
|
|
|
|
and t.sn_voucher_number = #{snVoucherNumber} |
|
|
|
|
</if> |
|
|
|
|
<if |
|
|
|
|
test="businessCode != '99' and businessCode != null and businessCode != '' and businessCode != 'null' "> |
|
|
|
|