|
|
@ -30,11 +30,11 @@ |
|
|
|
resultMap="BaseResultMap" databaseId="mysql"> |
|
|
|
resultMap="BaseResultMap" databaseId="mysql"> |
|
|
|
select |
|
|
|
select |
|
|
|
t.id,t.invoice_type,t.invoice_code,t.invoice_no,t.ele_invoice_no,t.invoice_date,t.gf_name,t.xf_name,t.invoice_amount,t.tax_amount,t.dept_id,t.qs_status |
|
|
|
t.id,t.invoice_type,t.invoice_code,t.invoice_no,t.ele_invoice_no,t.invoice_date,t.gf_name,t.xf_name,t.invoice_amount,t.tax_amount,t.dept_id,t.qs_status |
|
|
|
|
|
|
|
, |
|
|
|
from t_dx_record_invoice t |
|
|
|
from t_dx_record_invoice t |
|
|
|
where t.company = #{company} and t.gf_tax_no in |
|
|
|
where t.company = #{company} |
|
|
|
<foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
and t.gf_tax_no = #{gfsh} |
|
|
|
#{item} |
|
|
|
and (t.comp_code = #{companyCode} or t.comp_code = '' or t.comp_code is null) |
|
|
|
</foreach> |
|
|
|
|
|
|
|
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')) |
|
|
|
<if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType == '14' "> |
|
|
|
<if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType == '14' "> |
|
|
|
and (t.invoice_type = '14' or (t.invoice_type = '32' and t.lq_tdyslxDm='08') ) |
|
|
|
and (t.invoice_type = '14' or (t.invoice_type = '32' and t.lq_tdyslxDm='08') ) |
|
|
@ -128,10 +128,9 @@ |
|
|
|
resultMap="WqshjResultMap" databaseId="mysql"> |
|
|
|
resultMap="WqshjResultMap" databaseId="mysql"> |
|
|
|
select count(1) hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse |
|
|
|
select count(1) hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse |
|
|
|
from t_dx_record_invoice t |
|
|
|
from t_dx_record_invoice t |
|
|
|
where t.company = #{company} and t.gf_tax_no in |
|
|
|
where t.company = #{company} |
|
|
|
<foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
and t.gf_tax_no = #{gfsh} |
|
|
|
#{item} |
|
|
|
and (t.comp_code = #{companyCode} or t.comp_code = '' or t.comp_code is null) |
|
|
|
</foreach> |
|
|
|
|
|
|
|
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')) |
|
|
|
<if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType == '14' "> |
|
|
|
<if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType == '14' "> |
|
|
|
and (t.invoice_type = '14' or (t.invoice_type = '32' and t.lq_tdyslxDm='08') ) |
|
|
|
and (t.invoice_type = '14' or (t.invoice_type = '32' and t.lq_tdyslxDm='08') ) |
|
|
|