进项和销项票池导出条件与查询条件保持一致

release
yishiqihuasheng 2 years ago
parent 5153fea813
commit d78ed41566
  1. 4
      dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml

@ -553,7 +553,7 @@
from from
${dxhyTertiary}.t_dx_record_invoice t ${dxhyTertiary}.t_dx_record_invoice t
left JOIN ${dxhyDetail}.t_dx_record_invoice_detail b ON t.uuid = b.uuid left JOIN ${dxhyDetail}.t_dx_record_invoice_detail b ON t.uuid = b.uuid
where t.detail_yesorno = '1' where '1' = '1'
<if test="cjksyf != null and cjksyf!= '' and cjjsyf != null and cjjsyf != ''"> <if test="cjksyf != null and cjksyf!= '' and cjjsyf != null and cjjsyf != ''">
AND t.create_date BETWEEN #{cjksyf} and #{cjjsyf} AND t.create_date BETWEEN #{cjksyf} and #{cjjsyf}
</if> </if>
@ -666,7 +666,7 @@
from from
${dxhyTertiary}.t_dx_sale_record_invoice t ${dxhyTertiary}.t_dx_sale_record_invoice t
left JOIN ${dxhyDetail}.t_dx_record_invoice_detail_sales b ON t.uuid = b.uuid left JOIN ${dxhyDetail}.t_dx_record_invoice_detail_sales b ON t.uuid = b.uuid
where t.detail_yesorno = '1' where 1 = 1
<if test="cjksyf != null and cjksyf!= '' and cjjsyf != null and cjjsyf != ''"> <if test="cjksyf != null and cjksyf!= '' and cjjsyf != null and cjjsyf != ''">
AND t.create_date between #{cjksyf} and #{cjjsyf} AND t.create_date between #{cjksyf} and #{cjjsyf}
</if> </if>

Loading…
Cancel
Save