|
|
|
@ -22,11 +22,13 @@ |
|
|
|
|
<result column="qs_name" property="qsName"/> |
|
|
|
|
<result column="invoice_status" property="invoiceStatus"/> |
|
|
|
|
<result column="authStatus" property="authStatus"/> |
|
|
|
|
<result column="in_account_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"/> |
|
|
|
|
<result column="ele_invoice_no" property="eleInvoiceNo"/> |
|
|
|
|
<result column="bzdh" property="bzdh"/> |
|
|
|
|
<result column="inaccount_status" property="inAccountStatus"/> |
|
|
|
|
</resultMap> |
|
|
|
|
<resultMap id="hjResultMap" |
|
|
|
|
type="com.dxhy.base.entity.BaseTDxRecordInvoice"> |
|
|
|
@ -91,6 +93,12 @@ |
|
|
|
|
<if test="qszt != null and qszt != '' and qszt != 'null' "> |
|
|
|
|
and t.qs_status = #{qszt} |
|
|
|
|
</if> |
|
|
|
|
<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> |
|
|
|
|
<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> |
|
|
|
@ -151,9 +159,6 @@ |
|
|
|
|
</foreach> |
|
|
|
|
) or (t.dept_id is null or t.dept_id='' or t.dept_id='99')) |
|
|
|
|
</if> |
|
|
|
|
<if test='inAccountStatus!=null and inAccountStatus!="" and inAccountStatus !="99"'> |
|
|
|
|
and t.in_account_status = #{inAccountStatus} |
|
|
|
|
</if> |
|
|
|
|
<if test="eleInvoiceNo!=null and eleInvoiceNo!='' and eleInvoiceNo!='null'"> |
|
|
|
|
and t.ele_invoice_no = #{eleInvoiceNo} |
|
|
|
|
</if> |
|
|
|
@ -354,8 +359,7 @@ |
|
|
|
|
and t.auth_status in('0','5','6') |
|
|
|
|
and t.export_mark = '0' |
|
|
|
|
and t.company = #{company} |
|
|
|
|
<if |
|
|
|
|
test="sfkrz != '99' and sfkrz != null and sfkrz != '' and sfkrz != 'null' and sfkrz == '1'.toString()"> |
|
|
|
|
<if test="sfkrz != '99' and sfkrz != null and sfkrz != '' and sfkrz != 'null' and sfkrz == '1'.toString()"> |
|
|
|
|
and t.invoice_status in ('0','7') |
|
|
|
|
and t.invoice_amount>0 |
|
|
|
|
and t.tax_amount>=0 |
|
|
|
@ -363,8 +367,7 @@ |
|
|
|
|
and d.tj_status in('0','3') |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
<if |
|
|
|
|
test="sfkrz != '99' and sfkrz != null and sfkrz != '' and sfkrz != 'null' and sfkrz == '0'.toString()"> |
|
|
|
|
<if test="sfkrz != '99' and sfkrz != null and sfkrz != '' and sfkrz != 'null' and sfkrz == '0'.toString()"> |
|
|
|
|
and (t.invoice_status in ('1','2','3','4','8','80') or t.invoice_amount <0 or t.tax_amount <0 or |
|
|
|
|
date_format(t.invoice_date,'%Y%m%d') <= c.select_start_date or |
|
|
|
|
date_format(t.invoice_date,'%Y%m%d') >= |
|
|
|
@ -424,6 +427,12 @@ |
|
|
|
|
<if test="invoiceSource!=null and invoiceSource!='99' and invoiceSource!='null' and invoiceSource!=''"> |
|
|
|
|
and t.invoice_source =#{invoiceSource} |
|
|
|
|
</if> |
|
|
|
|
<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> |
|
|
|
|
<if test="businessCode==''"> |
|
|
|
|
and (t.dept_id is null or t.dept_id='' or t.dept_id='99') |
|
|
|
|
</if> |
|
|
|
@ -435,6 +444,7 @@ |
|
|
|
|
) or (t.dept_id is null or t.dept_id='' or t.dept_id='99')) |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 按签收人查询 --> |
|
|
|
|
<if |
|
|
|
|
test="position != null and position != '' and position != 'null' and position == '1'.toString()"> |
|
|
|
@ -443,9 +453,9 @@ |
|
|
|
|
<if test="settlementNo != null and settlementNo != ''"> |
|
|
|
|
and t.settlement_no like concat(#{settlementNo},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test='inAccountStatus!=null and inAccountStatus!="" and inAccountStatus !="99"'> |
|
|
|
|
and t.in_account_status = #{inAccountStatus} |
|
|
|
|
</if> |
|
|
|
|
<!-- <if test='inAccountStatus!=null and inAccountStatus!="" and inAccountStatus !="99"'>--> |
|
|
|
|
<!-- and t.inaccount_status = #{inAccountStatus}--> |
|
|
|
|
<!-- </if>--> |
|
|
|
|
<if test="eleInvoiceNo!=null and eleInvoiceNo!='' and eleInvoiceNo!='null'"> |
|
|
|
|
and t.ele_invoice_no = #{eleInvoiceNo} |
|
|
|
|
</if> |
|
|
|
|