修改出口转内销认证查询mapper文件对于已认证的查询sql

release
yishiqihuasheng 2 years ago
parent 46a032eae0
commit 1cc237b654
  1. 12
      dxhy-export-domestic/src/main/resources/mapper/DomesticExportInvoiceMapper.xml

@ -352,10 +352,14 @@
and p.gf_tax_no = #{queryParams.gfsh} and p.gf_tax_no = #{queryParams.gfsh}
</if> </if>
<if test="queryParams.rzhYesorno!=null and queryParams.rzhYesorno!=''"> <if test="queryParams.rzhYesorno!=null and queryParams.rzhYesorno!='' and queryParams.rzhYesorno != 3 ">
and p.rzh_yesorno = #{queryParams.rzhYesorno} and p.rzh_yesorno = #{queryParams.rzhYesorno}
</if> </if>
<if test="queryParams.rzhYesorno!=null and queryParams.rzhYesorno!='' and queryParams.rzhYesorno == 3 ">
and (p.rzh_yesorno = '1' or p.rzh_yesorno = '2')
</if>
<if test="queryParams.bdkStatus!=null and queryParams.bdkStatus!=''"> <if test="queryParams.bdkStatus!=null and queryParams.bdkStatus!=''">
and p.bdk_status = #{queryParams.bdkStatus} and p.bdk_status = #{queryParams.bdkStatus}
</if> </if>
@ -436,10 +440,14 @@
and p.gf_tax_no = #{queryParams.gfsh} and p.gf_tax_no = #{queryParams.gfsh}
</if> </if>
<if test="queryParams.rzhYesorno!=null and queryParams.rzhYesorno!=''"> <if test="queryParams.rzhYesorno!=null and queryParams.rzhYesorno!='' and queryParams.rzhYesorno != 3 ">
and p.rzh_yesorno = #{queryParams.rzhYesorno} and p.rzh_yesorno = #{queryParams.rzhYesorno}
</if> </if>
<if test="queryParams.rzhYesorno!=null and queryParams.rzhYesorno!='' and queryParams.rzhYesorno == 3 ">
and (p.rzh_yesorno = '1' or p.rzh_yesorno = '2')
</if>
<if test="queryParams.bdkStatus!=null and queryParams.bdkStatus!=''"> <if test="queryParams.bdkStatus!=null and queryParams.bdkStatus!=''">
and p.bdk_status = #{queryParams.bdkStatus} and p.bdk_status = #{queryParams.bdkStatus}
</if> </if>

Loading…
Cancel
Save