|
|
@ -64,7 +64,7 @@ |
|
|
|
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 |
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{kpksrq} and #{kpjsrq} |
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{kpksrq} and #{kpjsrq} |
|
|
|
and (t.invoice_type in('01','03','08','14','31','283','161','183','185') or (t.invoice_type ='32' and t.lq_tdyslxDm='08')) |
|
|
|
and t.invoice_type in('01','03','08','14','31','283','161','183','185') or (t.invoice_type ='32' and t.lq_tdyslxDm='08') |
|
|
|
and t.rzh_yesorno = '0' |
|
|
|
and t.rzh_yesorno = '0' |
|
|
|
and t.auth_status in('0','5','6') |
|
|
|
and t.auth_status in('0','5','6') |
|
|
|
and t.export_mark = '0' |
|
|
|
and t.export_mark = '0' |
|
|
@ -171,6 +171,18 @@ |
|
|
|
<if test="qsksrq==null or qsksrq=='' or qsjsrq==null or qsjsrq==''"> |
|
|
|
<if test="qsksrq==null or qsksrq=='' or qsjsrq==null or qsjsrq==''"> |
|
|
|
order by t.invoice_date desc |
|
|
|
order by t.invoice_date desc |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'"> |
|
|
|
|
|
|
|
and t.sn_voucher_number = #{snVoucherNumber} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="postingTime != null and postingTime != '' and postingTime != 'null' and postingTime != '99'"> |
|
|
|
|
|
|
|
and t.postingTime = #{postingTime} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="imageId != null and imageId != '' and imageId != 'null' and imageId != '99'"> |
|
|
|
|
|
|
|
and t.image_id = #{imageId} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'"> |
|
|
|
|
|
|
|
and t.account_period = #{accountPeriod} |
|
|
|
|
|
|
|
</if> |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<select id="selectDksh" parameterType="java.util.Map" |
|
|
|
<select id="selectDksh" parameterType="java.util.Map" |
|
|
|
resultType="com.dxhy.base.entity.BaseTDxDkCount" |
|
|
|
resultType="com.dxhy.base.entity.BaseTDxDkCount" |
|
|
@ -199,7 +211,7 @@ |
|
|
|
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 |
|
|
|
WHERE to_char(t.invoice_date,'yyyy-MM-dd') between #{kpksrq} and #{kpjsrq} |
|
|
|
WHERE to_char(t.invoice_date,'yyyy-MM-dd') between #{kpksrq} and #{kpjsrq} |
|
|
|
and (t.invoice_type in('01','03','08','14','31','283','161','183','185') or (t.invoice_type ='32' and t.lq_tdyslxDm='08')) |
|
|
|
and t.invoice_type in('01','03','08','14','31','283','161','183','185') or (t.invoice_type ='32' and t.lq_tdyslxDm='08') |
|
|
|
and t.rzh_yesorno = '0' |
|
|
|
and t.rzh_yesorno = '0' |
|
|
|
and t.auth_status in('0','5','6') |
|
|
|
and t.auth_status in('0','5','6') |
|
|
|
and t.export_mark = '0' |
|
|
|
and t.export_mark = '0' |
|
|
@ -323,6 +335,18 @@ |
|
|
|
<if test="eleInvoiceNo!=null and eleInvoiceNo!='' and eleInvoiceNo!='null'"> |
|
|
|
<if test="eleInvoiceNo!=null and eleInvoiceNo!='' and eleInvoiceNo!='null'"> |
|
|
|
and t.ele_invoice_no = #{eleInvoiceNo} |
|
|
|
and t.ele_invoice_no = #{eleInvoiceNo} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="snVoucherNumber != null and snVoucherNumber != '' and snVoucherNumber != 'null' and snVoucherNumber != '99'"> |
|
|
|
|
|
|
|
and t.sn_voucher_number = #{snVoucherNumber} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="postingTime != null and postingTime != '' and postingTime != 'null' and postingTime != '99'"> |
|
|
|
|
|
|
|
and t.postingTime = #{postingTime} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="imageId != null and imageId != '' and imageId != 'null' and imageId != '99'"> |
|
|
|
|
|
|
|
and t.image_id = #{imageId} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'"> |
|
|
|
|
|
|
|
and t.account_period = #{accountPeriod} |
|
|
|
|
|
|
|
</if> |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectHj" parameterType="java.util.Map" |
|
|
|
<select id="selectHj" parameterType="java.util.Map" |
|
|
|