diff --git a/dxhy-extend/src/main/resources/mapper/ExtInvoicePoolMapper.xml b/dxhy-extend/src/main/resources/mapper/ExtInvoicePoolMapper.xml index fcd89c46..1fd45482 100644 --- a/dxhy-extend/src/main/resources/mapper/ExtInvoicePoolMapper.xml +++ b/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) 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) AND t.create_date between #{cjksyf} and #{cjjsyf}