|
|
|
@ -22,7 +22,7 @@ |
|
|
|
|
<result column="qs_name" property="qsName"/> |
|
|
|
|
<result column="invoice_status" property="invoiceStatus"/> |
|
|
|
|
<result column="authStatus" property="authStatus"/> |
|
|
|
|
<result column="inaccount_status" property="inaccountStatus"/> |
|
|
|
|
<result column="inaccount_status" property="inAccountStatus"/> |
|
|
|
|
<result column="payment_date" property="paymentDate"/> |
|
|
|
|
<result column="payment_status" property="paymentStatus"/> |
|
|
|
|
<result column="voucher_number" property="voucherNumber"/> |
|
|
|
@ -61,7 +61,7 @@ |
|
|
|
|
case date_format(t.invoice_date,'%Y%m%d') between c.select_start_date and c.select_end_date when |
|
|
|
|
true then 1 |
|
|
|
|
else 2 end authStatus,t.bzdh, |
|
|
|
|
t.in_account_status,t.payment_status,DATE_FORMAT(t.payment_date,'%Y-%m-%d')payment_date,t.settlement_no,t.ele_invoice_no |
|
|
|
|
t.inaccount_status,t.payment_status,DATE_FORMAT(t.payment_date,'%Y-%m-%d')payment_date,t.settlement_no,t.ele_invoice_no |
|
|
|
|
from t_dx_record_invoice t left join t_dx_tax_current c on t.gf_tax_no = c.taxno |
|
|
|
|
left join t_dx_dk_count d on c.taxno = d.taxno and c.current_tax_period = d.skssq |
|
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{kpksrq} and #{kpjsrq} |
|
|
|
@ -95,8 +95,8 @@ |
|
|
|
|
<if test="bzdh != null and bzdh != '' and bzdh != 'null'"> |
|
|
|
|
and t.bzdh = #{bzdh} |
|
|
|
|
</if> |
|
|
|
|
<if test="inaccountStatus != null and inaccountStatus != '' and inaccountStatus != 'null'"> |
|
|
|
|
and t.inaccount_status = #{inaccountStatus} |
|
|
|
|
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null'"> |
|
|
|
|
and t.inaccount_status = #{inAccountStatus} |
|
|
|
|
</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} |
|
|
|
@ -429,8 +429,8 @@ |
|
|
|
|
<if test="bzdh != null and bzdh != '' and bzdh != 'null'"> |
|
|
|
|
and t.bzdh = #{bzdh} |
|
|
|
|
</if> |
|
|
|
|
<if test="inaccountStatus != null and inaccountStatus != '' and inaccountStatus != 'null'"> |
|
|
|
|
and t.inaccount_status = #{inaccountStatus} |
|
|
|
|
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null'"> |
|
|
|
|
and t.inaccount_status = #{inAccountStatus} |
|
|
|
|
</if> |
|
|
|
|
<if test="businessCode==''"> |
|
|
|
|
and (t.dept_id is null or t.dept_id='' or t.dept_id='99') |
|
|
|
|