|
|
|
@ -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} |
|
|
|
|