|
|
@ -1527,13 +1527,12 @@ |
|
|
|
ifnull(sum(t.invoice_amount),0) totalAmount, ifnull(sum(t.tax_amount),0) totalTaxAmount |
|
|
|
ifnull(sum(t.invoice_amount),0) totalAmount, ifnull(sum(t.tax_amount),0) totalTaxAmount |
|
|
|
from t_dx_record_invoice t |
|
|
|
from t_dx_record_invoice t |
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{invoiceStartTime} and #{invoiceEndTime} |
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{invoiceStartTime} and #{invoiceEndTime} |
|
|
|
|
|
|
|
and t.gf_tax_no = #{gfsh} |
|
|
|
|
|
|
|
and (t.comp_code = #{companyCode} or t.comp_code = '' or t.comp_code is null) |
|
|
|
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' |
|
|
|
and t.gf_tax_no in |
|
|
|
|
|
|
|
<foreach close=")" collection="taxNoList" index="index" item="item" open="(" separator=","> |
|
|
|
|
|
|
|
#{item} |
|
|
|
|
|
|
|
</foreach> |
|
|
|
|
|
|
|
<if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' "> |
|
|
|
<if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' "> |
|
|
|
and t.invoice_no = #{invoiceNo} |
|
|
|
and t.invoice_no = #{invoiceNo} |
|
|
|
</if> |
|
|
|
</if> |
|
|
@ -1580,13 +1579,12 @@ |
|
|
|
ifnull(sum(t.invoice_amount),0) totalAmount, IFNULL(sum(t.tax_amount),0) totalTaxAmount |
|
|
|
ifnull(sum(t.invoice_amount),0) totalAmount, IFNULL(sum(t.tax_amount),0) totalTaxAmount |
|
|
|
from t_dx_record_invoice t |
|
|
|
from t_dx_record_invoice t |
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{invoiceStartTime} and #{invoiceEndTime} |
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{invoiceStartTime} and #{invoiceEndTime} |
|
|
|
|
|
|
|
and t.gf_tax_no = #{gfsh} |
|
|
|
|
|
|
|
and (t.comp_code = #{companyCode} or t.comp_code = '' or t.comp_code is null) |
|
|
|
and (t.rzlx = '2' or t.rzlx = '3') |
|
|
|
and (t.rzlx = '2' or t.rzlx = '3') |
|
|
|
and t.export_mark = '0' |
|
|
|
and t.export_mark = '0' |
|
|
|
and t.company = #{company} |
|
|
|
and t.company = #{company} |
|
|
|
and t.gf_tax_no in |
|
|
|
|
|
|
|
<foreach close=")" collection="taxNoList" index="index" item="item" open="(" separator=","> |
|
|
|
|
|
|
|
#{item} |
|
|
|
|
|
|
|
</foreach> |
|
|
|
|
|
|
|
<if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' "> |
|
|
|
<if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' "> |
|
|
|
and t.invoice_no = #{invoiceNo} |
|
|
|
and t.invoice_no = #{invoiceNo} |
|
|
|
</if> |
|
|
|
</if> |
|
|
@ -1644,14 +1642,13 @@ |
|
|
|
from t_dx_record_invoice t |
|
|
|
from t_dx_record_invoice t |
|
|
|
left join ${dxhyAdmin}.sys_business b on t.dept_id = b.business_code |
|
|
|
left join ${dxhyAdmin}.sys_business b on t.dept_id = b.business_code |
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{invoiceStartTime} and #{invoiceEndTime} |
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{invoiceStartTime} and #{invoiceEndTime} |
|
|
|
|
|
|
|
and t.gf_tax_no = #{gfsh} |
|
|
|
|
|
|
|
and (t.comp_code = #{companyCode} or t.comp_code = '' or t.comp_code is null) |
|
|
|
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' |
|
|
|
and t.company = #{company} |
|
|
|
and t.company = #{company} |
|
|
|
and t.gf_tax_no in |
|
|
|
|
|
|
|
<foreach close=")" collection="taxNoList" index="index" item="item" open="(" separator=","> |
|
|
|
|
|
|
|
#{item} |
|
|
|
|
|
|
|
</foreach> |
|
|
|
|
|
|
|
<if test="invoiceStatus != '99'"> |
|
|
|
<if test="invoiceStatus != '99'"> |
|
|
|
and t.invoice_status = #{invoiceStatus} |
|
|
|
and t.invoice_status = #{invoiceStatus} |
|
|
|
</if> |
|
|
|
</if> |
|
|
@ -1700,13 +1697,11 @@ |
|
|
|
from t_dx_record_invoice t |
|
|
|
from t_dx_record_invoice t |
|
|
|
left join ${dxhyAdmin}.sys_business b on t.dept_id = b.business_code |
|
|
|
left join ${dxhyAdmin}.sys_business b on t.dept_id = b.business_code |
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{invoiceStartTime} and #{invoiceEndTime} |
|
|
|
WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{invoiceStartTime} and #{invoiceEndTime} |
|
|
|
|
|
|
|
and t.gf_tax_no = #{gfsh} |
|
|
|
|
|
|
|
and (t.comp_code = #{companyCode} or t.comp_code = '' or t.comp_code is null) |
|
|
|
and (t.rzlx = '2' or t.rzlx = '3') |
|
|
|
and (t.rzlx = '2' or t.rzlx = '3') |
|
|
|
and t.export_mark = '0' |
|
|
|
and t.export_mark = '0' |
|
|
|
and t.company = #{company} |
|
|
|
and t.company = #{company} |
|
|
|
and t.gf_tax_no in |
|
|
|
|
|
|
|
<foreach close=")" collection="taxNoList" index="index" item="item" open="(" separator=","> |
|
|
|
|
|
|
|
#{item} |
|
|
|
|
|
|
|
</foreach> |
|
|
|
|
|
|
|
<if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' "> |
|
|
|
<if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' "> |
|
|
|
and t.invoice_no = #{invoiceNo} |
|
|
|
and t.invoice_no = #{invoiceNo} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|