|
|
@ -487,6 +487,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="bzr" property="bzr"/> |
|
|
|
<result column="bzr" property="bzr"/> |
|
|
|
|
|
|
|
<result column="suspend_status" property="suspendStatus"/> |
|
|
|
|
|
|
|
<result column="suspend_date" property="suspendDate"/> |
|
|
|
<result column="comp_code" property="compCode"/> |
|
|
|
<result column="comp_code" property="compCode"/> |
|
|
|
</resultMap> |
|
|
|
</resultMap> |
|
|
|
<select id="selectByparams" parameterType="java.util.Map" |
|
|
|
<select id="selectByparams" parameterType="java.util.Map" |
|
|
@ -497,7 +499,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,t.bzr, |
|
|
|
else 2 end authStatus,t.bzdh,t.bzr,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 |
|
|
@ -541,6 +543,15 @@ |
|
|
|
<if test="bzr != null and bzr != '' and bzr != 'null'"> |
|
|
|
<if test="bzr != null and bzr != '' and bzr != 'null'"> |
|
|
|
and t.bzr like concat('%',#{bzr},'%') |
|
|
|
and t.bzr like concat('%',#{bzr},'%') |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="suspendStatus != null and suspendStatus != '' and suspendStatus != 'null' and suspendStatus != '99' and suspendStatus == '1'.toString()"> |
|
|
|
|
|
|
|
and t.suspend_status = '1' |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="suspendStatus != null and suspendStatus != '' and suspendStatus != 'null' and suspendStatus != '99' and suspendStatus == '0'.toString()"> |
|
|
|
|
|
|
|
and (t.suspend_status = '' or t.suspend_status is null or t.suspend_status = '0') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="suspendDate != null and suspendDate != '' and suspendDate != 'null' "> |
|
|
|
|
|
|
|
and t.suspend_date = #{suspendDate} |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99'"> |
|
|
|
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99'"> |
|
|
|
and t.inaccount_status = #{inAccountStatus} |
|
|
|
and t.inaccount_status = #{inAccountStatus} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|