ariesy 统计查询导出 v2

release
yefei 2 years ago
parent 880465cc33
commit 8b6502d9cf
  1. 4
      dxhy-core/src/main/resources/mapper/TDxExportCustomsDao.xml
  2. 4
      dxhy-core/src/main/resources/mapper/TDxExportInvoiceDao.xml

@ -421,10 +421,10 @@
</select> </select>
<sql id="queryExportCustoms_sql"> <sql id="queryExportCustoms_sql">
<if test="queryParams.gfsh!=null "> <if test="queryParams.gfsh!=null ">
and p.gf_tax_no = #{gfsh} and p.gf_tax_no = #{queryParams.gfsh}
</if> </if>
<if test="queryParams.companyCode!=null "> <if test="queryParams.companyCode!=null ">
and (p.comp_code = #{companyCode} or p.comp_code = '' or p.comp_code is null) and (p.comp_code = #{queryParams.companyCode} or p.comp_code = '' or p.comp_code is null)
</if> </if>
<if test="queryParams.customsCode!=null and queryParams.customsCode!=''"> <if test="queryParams.customsCode!=null and queryParams.customsCode!=''">
and p.customs_code = #{queryParams.customsCode} and p.customs_code = #{queryParams.customsCode}

@ -426,10 +426,10 @@
</select> </select>
<sql id="queryExportInvoice_sql"> <sql id="queryExportInvoice_sql">
<if test="queryParams.gfsh!=null"> <if test="queryParams.gfsh!=null">
and p.gf_tax_no = #{gfsh} and p.gf_tax_no = #{queryParams.gfsh}
</if> </if>
<if test="queryParams.companyCode!=null"> <if test="queryParams.companyCode!=null">
and (p.comp_code = #{companyCode} or p.comp_code = '' or p.comp_code is null) and (p.comp_code = #{queryParams.companyCode} or p.comp_code = '' or p.comp_code is null)
</if> </if>
<if test="queryParams.rzhYesorno!=null and queryParams.rzhYesorno!=''"> <if test="queryParams.rzhYesorno!=null and queryParams.rzhYesorno!=''">
and p.rzh_yesorno = #{queryParams.rzhYesorno} and p.rzh_yesorno = #{queryParams.rzhYesorno}

Loading…
Cancel
Save