arieay 查询sql增加税率字段 v2

release
yefei 2 years ago
parent 6c2b74df0a
commit ecf4fc5b7f
  1. 8
      dxhy-base/src/main/resources/mapper/BaseFpZhMapper.xml
  2. 8
      dxhy-base/src/main/resources/mapper/BaseSggxcxMapper.xml

@ -236,10 +236,10 @@
and t.account_period = #{accountPeriod}
</if>
<if test="taxRate!=null and taxRate!='' and taxRate != null and taxRate !='99'">
and t.tax_rate like %#{taxRate}%
and t.tax_rate = #{taxRate}
</if>
<if test="taxRate==''">
and t.tax_rate #{taxRate}
and t.tax_rate = #{taxRate}
</if>
</select>
<select id="selectByPramsMap" parameterType="java.util.Map"
@ -498,10 +498,10 @@
and t.ele_invoice_no = #{eleInvoiceNo}
</if>
<if test="taxRate!=null and taxRate!='' and taxRate != null and taxRate !='99'">
and t.tax_rate like %#{taxRate}%
and t.tax_rate = #{taxRate}
</if>
<if test="taxRate==''">
and t.tax_rate #{taxRate}
and t.tax_rate = #{taxRate}
</if>
</select>
<select id="selectRzfpHj" parameterType="java.util.Map"

@ -218,10 +218,10 @@
and t.account_period = #{accountPeriod}
</if>
<if test="taxRate!=null and taxRate!='' and taxRate != null and taxRate !='99'">
and t.tax_rate like %#{taxRate}%
and t.tax_rate = #{taxRate}
</if>
<if test="taxRate==''">
and t.tax_rate #{taxRate}
and t.tax_rate = #{taxRate}
</if>
<!-- <if test="qsksrq != null and qsksrq != '' and qsksrq != 'null' and qsjsrq != null and qsjsrq != '' and qsjsrq != 'null'">-->
<!-- order by t.qs_date desc,t.invoice_date desc-->
@ -560,10 +560,10 @@
and t.account_period = #{accountPeriod}
</if>
<if test="taxRate!=null and taxRate!='' and taxRate != null and taxRate !='99'">
and t.tax_rate like %#{taxRate}%
and t.tax_rate = #{taxRate}
</if>
<if test="taxRate==''">
and t.tax_rate like #{taxRate}
and t.tax_rate = #{taxRate}
</if>
order by t.bzdh desc
</select>

Loading…
Cancel
Save