|
|
|
@ -80,15 +80,15 @@ |
|
|
|
|
select |
|
|
|
|
t.id,t.invoice_type,t.invoice_code,t.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 left join t_dx_invoice r on t.uuid = r.uuid |
|
|
|
|
where |
|
|
|
|
where 1=1 |
|
|
|
|
<if test="ids != null and ids.size()>0"> |
|
|
|
|
and r.id in |
|
|
|
|
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
|
<foreach collection="ids" index="index" item="item" open="[" separator="," close="]"> |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
</if> |
|
|
|
|
<if test="company !=null and company != ''"> |
|
|
|
|
t.company = #{company} |
|
|
|
|
and t.company = #{company} |
|
|
|
|
</if> |
|
|
|
|
and t.qs_status = '0' |
|
|
|
|
and t.source_system='0' |
|
|
|
|