|
|
|
@ -32,8 +32,8 @@ |
|
|
|
|
v.zbzdh as bzdh, |
|
|
|
|
v.create_time |
|
|
|
|
FROM |
|
|
|
|
dxhy_tertiary.voucher_record_item i |
|
|
|
|
LEFT JOIN dxhy_tertiary.voucher_record v |
|
|
|
|
voucher_record_item i |
|
|
|
|
LEFT JOIN voucher_record v |
|
|
|
|
ON v.id = i.relation_id |
|
|
|
|
where i.racct like CONCAT(#{kjkmbh},'%') |
|
|
|
|
and DATE_FORMAT(v.create_time,'%Y-%m-%d %H:%i:%s') between #{start} and #{end} |
|
|
|
@ -67,7 +67,7 @@ |
|
|
|
|
|
|
|
|
|
<select id="getTaxAmount" parameterType="java.util.List" resultType="com.dxhy.core.entity.frJob.FpTaxAmount"> |
|
|
|
|
select CONCAT(d.tax_rate,t.bzdh) as `key`,sum(CAST(d.tax_amount as decimal(20,2))) as fpse |
|
|
|
|
from dxhy_detail.t_dx_record_invoice_detail d inner join t_dx_record_invoice t |
|
|
|
|
from t_dx_record_invoice_detail d inner join t_dx_record_invoice t |
|
|
|
|
on d.uuid = t.uuid |
|
|
|
|
where t.bzdh in |
|
|
|
|
<foreach collection="bzdhs" item="bzdh" open="(" separator="," close=")"> |
|
|
|
@ -92,8 +92,8 @@ |
|
|
|
|
v.zbzdh as bzdh, |
|
|
|
|
v.create_time |
|
|
|
|
FROM |
|
|
|
|
dxhy_tertiary.voucher_record_item i |
|
|
|
|
LEFT JOIN dxhy_tertiary.voucher_record v |
|
|
|
|
voucher_record_item i |
|
|
|
|
LEFT JOIN voucher_record v |
|
|
|
|
ON v.id = i.relation_id |
|
|
|
|
where i.racct like CONCAT(#{kjkmbh},'%') |
|
|
|
|
and DATE_FORMAT(v.create_time,'%Y-%m-%d %H:%i:%s') between #{start} and #{end} |
|
|
|
@ -104,7 +104,7 @@ |
|
|
|
|
<select id="getXTaxAmount" parameterType="java.util.List" resultType="com.dxhy.core.entity.frJob.FpTaxAmount"> |
|
|
|
|
select CONCAT(d.tax_rate,t.bzdh) as `key`,sum(CAST(d.tax_amount as decimal(20,2))) as fpse, |
|
|
|
|
sum(CAST(d.detail_amount as decimal(20,2))) as fpje |
|
|
|
|
from dxhy_detail.t_dx_record_invoice_detail_sales d inner join t_dx_sale_record_invoice t |
|
|
|
|
from t_dx_record_invoice_detail_sales d inner join t_dx_sale_record_invoice t |
|
|
|
|
on d.uuid = t.uuid |
|
|
|
|
where t.bzdh in |
|
|
|
|
<foreach collection="bzdhs" item="bzdh" open="(" separator="," close=")"> |
|
|
|
@ -129,8 +129,8 @@ |
|
|
|
|
v.zbzdh as bzdh, |
|
|
|
|
v.create_time |
|
|
|
|
FROM |
|
|
|
|
dxhy_tertiary.voucher_record_item i |
|
|
|
|
LEFT JOIN dxhy_tertiary.voucher_record v |
|
|
|
|
voucher_record_item i |
|
|
|
|
LEFT JOIN voucher_record v |
|
|
|
|
ON v.id = i.relation_id |
|
|
|
|
where i.racct like CONCAT(#{kjkmbh},'%') |
|
|
|
|
and DATE_FORMAT(v.create_time,'%Y-%m-%d %H:%i:%s') between #{start} and #{end} |
|
|
|
|