ariesy 统计查询导出

release
yefei 2 years ago
parent 27a8ac6197
commit 880465cc33
  1. 4
      dxhy-core/src/main/resources/mapper/TDxExportCustomsDao.xml
  2. 4
      dxhy-core/src/main/resources/mapper/TDxExportInvoiceDao.xml
  3. 7
      dxhy-customs/src/main/resources/mapper/CustomsJkszhcxMapper.xml

@ -363,7 +363,7 @@
p.bdk_status as bdkStatus,
p.confirm_user as confirmUser,
p.rzh_belong_date as rzhBelongDate,
p.cxrz_status as cxrzStatus
p.cxrz_status as cxrzStatus,
p.sn_voucher_number as snVoucherNumber,
p.posting_time as postingTime,
p.image_id as imageId,
@ -424,7 +424,7 @@
and p.gf_tax_no = #{gfsh}
</if>
<if test="queryParams.companyCode!=null ">
and p.comp_code = #{companyCode}
and (p.comp_code = #{companyCode} or p.comp_code = '' or p.comp_code is null)
</if>
<if test="queryParams.customsCode!=null and queryParams.customsCode!=''">
and p.customs_code = #{queryParams.customsCode}

@ -369,7 +369,7 @@
p.bdk_status as bdkStatus,
p.confirm_user as confirmUser,
p.rzh_belong_date as rzhBelongDate,
p.cxbdk_status as cxbdkStatus
p.cxbdk_status as cxbdkStatus,
p.sn_voucher_number as snVoucherNumber,
p.posting_time as postingTime,
p.image_id as imageId,
@ -429,7 +429,7 @@
and p.gf_tax_no = #{gfsh}
</if>
<if test="queryParams.companyCode!=null">
and p.comp_code = #{companyCode}
and (p.comp_code = #{companyCode} or p.comp_code = '' or p.comp_code is null)
</if>
<if test="queryParams.rzhYesorno!=null and queryParams.rzhYesorno!=''">
and p.rzh_yesorno = #{queryParams.rzhYesorno}

@ -51,10 +51,9 @@
t.customs_scan_id,t.dept_name businessName
,t.sn_voucher_number,t.posting_time,t.image_id,t.account_period,t.bzdh,t.bzr,t.inaccount_status,t.comp_code
from t_dx_customs_record t
where export_mark = '0' and t.gf_tax_no in
<foreach close=")" collection="gfsh" index="index" item="item" open="(" separator=",">
#{item}
</foreach>
where export_mark = '0'
and t.gf_tax_no = #{gfsh}
and (t.comp_code = #{companyCode} or t.comp_code = '' or t.comp_code is null)
<if test="bzdh != null and bzdh != '' and bzdh != 'null'">
and t.bzdh = #{bzdh}
</if>

Loading…
Cancel
Save