arieay 查询sql增加税率字段 v2

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

@ -235,11 +235,11 @@
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
and t.account_period = #{accountPeriod}
</if>
<if test="taxRate != null and taxRate != '' and taxRate != 'null' and taxRate != '99'">
and (t.tax_rate in
<foreach collection="rates" index="index" item="taxRate" separator="," open="(" close=")">
#{taxRate}
</foreach>
<if test="taxRate!=null and taxRate!='' and taxRate != null and taxRate !='99'">
and t.tax_rate like %#{taxRate}%
</if>
<if test="taxRate==''">
and t.tax_rate #{taxRate}
</if>
</select>
<select id="selectByPramsMap" parameterType="java.util.Map"
@ -406,12 +406,6 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null' and bzdh != '99'">
and t.bzdh = #{bzdh}
</if>
<if test="taxRate != null and taxRate != '' and taxRate != 'null' and taxRate != '99'">
and (t.tax_rate in
<foreach collection="rates" index="index" item="taxRate" separator="," open="(" close=")">
#{taxRate}
</foreach>
</if>
<if test="bzr != null and bzr != '' and bzr != 'null'">
and t.bzr like concat('%',#{bzr},'%')
</if>

@ -136,12 +136,6 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null' and bzdh != '99'">
and t.bzdh = #{bzdh}
</if>
<if test="taxRate != null and taxRate != '' and taxRate != 'null' and taxRate != '99'">
and (t.tax_rate in
<foreach collection="rates" index="index" item="taxRate" separator="," open="(" close=")">
#{taxRate}
</foreach>
</if>
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '1'.toString()">
and t.inaccount_status = #{inAccountStatus}
</if>
@ -521,12 +515,6 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null' and bzdh != '99'">
and t.bzdh = #{bzdh}
</if>
<if test="taxRate != null and taxRate != '' and taxRate != 'null' and taxRate != '99'">
and (t.tax_rate in
<foreach collection="rates" index="index" item="taxRate" separator="," open="(" close=")">
#{taxRate}
</foreach>
</if>
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '1'.toString()">
and t.inaccount_status = #{inAccountStatus}
</if>
@ -575,7 +563,7 @@
and t.tax_rate like %#{taxRate}%
</if>
<if test="taxRate==''">
and t.tax_rate #{taxRate}
and t.tax_rate like #{taxRate}
</if>
order by t.bzdh desc
</select>

Loading…
Cancel
Save