销项票池替换为销方税号

release
yishiqihuasheng 2 years ago
parent 522c44eef4
commit 64a1f42254
  1. 4
      dxhy-extend/src/main/resources/mapper/ExtInvoicePoolMapper.xml

@ -425,7 +425,7 @@
resultMap="InvoicePoolHjResultMap" databaseId="mysql">
select count(1) hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse
from t_dx_sale_record_invoice t
where t.gf_tax_no = #{gfsh}
where t.xf_tax_no = #{gfsh}
and (t.comp_code = #{companyCode} or t.comp_code = '' or t.comp_code is null)
<if test="cjksyf != null and cjksyf!= '' and cjjsyf != null and cjjsyf != ''">
AND t.create_date between #{cjksyf} and #{cjjsyf}
@ -520,7 +520,7 @@
,t.bzr bzr
,t.comp_code compCode
from t_dx_sale_record_invoice t
where t.gf_tax_no = #{gfsh}
where t.xf_tax_no = #{gfsh}
and (t.comp_code = #{companyCode} or t.comp_code = '' or t.comp_code is null)
<if test="cjksyf != null and cjksyf!= '' and cjjsyf != null and cjjsyf != ''">
AND t.create_date between #{cjksyf} and #{cjjsyf}

Loading…
Cancel
Save