|
|
@ -32,6 +32,8 @@ |
|
|
|
<result column="ele_invoice_no" property="eleInvoiceNo"/> |
|
|
|
<result column="ele_invoice_no" property="eleInvoiceNo"/> |
|
|
|
<result column="bzdh" property="bzdh"/> |
|
|
|
<result column="bzdh" property="bzdh"/> |
|
|
|
<result column="comp_code" property="compCode"/> |
|
|
|
<result column="comp_code" property="compCode"/> |
|
|
|
|
|
|
|
<result column="suspend_status" property="suspendStatus"/> |
|
|
|
|
|
|
|
<result column="suspend_date" property="suspendDate"/> |
|
|
|
</resultMap> |
|
|
|
</resultMap> |
|
|
|
<resultMap id="hjResultMap" |
|
|
|
<resultMap id="hjResultMap" |
|
|
|
type="com.dxhy.base.entity.BaseTDxRecordInvoice"> |
|
|
|
type="com.dxhy.base.entity.BaseTDxRecordInvoice"> |
|
|
@ -64,7 +66,7 @@ |
|
|
|
,t.qs_type,t.qs_status,t.dk_tax_amount,t.qs_name,t.sn_voucher_number,t.posting_time,t.image_id,t.account_period, |
|
|
|
,t.qs_type,t.qs_status,t.dk_tax_amount,t.qs_name,t.sn_voucher_number,t.posting_time,t.image_id,t.account_period, |
|
|
|
case date_format(t.invoice_date,'%Y%m%d') between c.select_start_date and c.select_end_date when |
|
|
|
case date_format(t.invoice_date,'%Y%m%d') between c.select_start_date and c.select_end_date when |
|
|
|
true then 1 |
|
|
|
true then 1 |
|
|
|
else 2 end authStatus,t.bzdh, |
|
|
|
else 2 end authStatus,t.bzdh,t.suspend_status,t.suspend_date, |
|
|
|
t.inaccount_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 |
|
|
|
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 |
|
|
|
left join t_dx_dk_count d on c.taxno = d.taxno and c.current_tax_period = d.skssq |
|
|
@ -103,6 +105,15 @@ |
|
|
|
<if test="companyCodes != null and companyCodes != '' and companyCodes == '88'"> |
|
|
|
<if test="companyCodes != null and companyCodes != '' and companyCodes == '88'"> |
|
|
|
and (t.comp_code = '' or t.comp_code is null) |
|
|
|
and (t.comp_code = '' or t.comp_code is null) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="suspendStatus != null and suspendStatus != '' and suspendStatus != 'null' and suspendStatus != '99' and suspendStatus == '1'.toString()"> |
|
|
|
|
|
|
|
t.suspend_status = '1' |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="suspendStatus != null and suspendStatus != '' and suspendStatus != 'null' and suspendStatus != '99' and suspendStatus == '0'.toString()"> |
|
|
|
|
|
|
|
t.suspend_status = '' or t.suspend_status is null or t.suspend_status = '0' |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="suspendDate != null and suspendDate != '' and suspendDate != 'null' "> |
|
|
|
|
|
|
|
t.suspend_date = #{suspendDate} |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test="qszt != null and qszt != '' and qszt != 'null' "> |
|
|
|
<if test="qszt != null and qszt != '' and qszt != 'null' "> |
|
|
|
and t.qs_status = #{qszt} |
|
|
|
and t.qs_status = #{qszt} |
|
|
|
</if> |
|
|
|
</if> |
|
|
@ -407,6 +418,15 @@ |
|
|
|
<if test="qszt != null and qszt != '' and qszt != 'null' "> |
|
|
|
<if test="qszt != null and qszt != '' and qszt != 'null' "> |
|
|
|
and t.qs_status = #{qszt} |
|
|
|
and t.qs_status = #{qszt} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="suspendStatus != null and suspendStatus != '' and suspendStatus != 'null' and suspendStatus != '99' and suspendStatus == '1'.toString()"> |
|
|
|
|
|
|
|
t.suspend_status = '1' |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="suspendStatus != null and suspendStatus != '' and suspendStatus != 'null' and suspendStatus != '99' and suspendStatus == '0'.toString()"> |
|
|
|
|
|
|
|
t.suspend_status = '' or t.suspend_status is null or t.suspend_status = '0' |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="suspendDate != null and suspendDate != '' and suspendDate != 'null' "> |
|
|
|
|
|
|
|
t.suspend_date = #{suspendDate} |
|
|
|
|
|
|
|
</if> |
|
|
|
<if |
|
|
|
<if |
|
|
|
test="qsksrq != null and qsksrq != '' and qsksrq != 'null' and qsjsrq != null and qsjsrq != '' and qsjsrq != 'null'"> |
|
|
|
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} |
|
|
|
and date_format(t.qs_date,'%Y-%m-%d') between #{qsksrq} and #{qsjsrq} |
|
|
|