arieay 查询sql增加税率字段 v3

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

@ -235,10 +235,10 @@
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'"> <if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
and t.account_period = #{accountPeriod} and t.account_period = #{accountPeriod}
</if> </if>
<if test="taxRate!=null and taxRate!='' and taxRate!='不征税' and taxRate != null and taxRate !='99'"> <if test="taxRate!=null and taxRate!='' and taxRate!='多税率' and taxRate != null and taxRate !='99'">
and t.tax_rate = #{taxRate} and t.tax_rate = #{taxRate}
</if> </if>
<if test="taxRate=='不征税'"> <if test="taxRate=='多税率'">
and t.tax_rate like '%,%' and t.tax_rate like '%,%'
</if> </if>
</select> </select>
@ -497,10 +497,10 @@
<if test="eleInvoiceNo!=null and eleInvoiceNo!='' and eleInvoiceNo!='null'"> <if test="eleInvoiceNo!=null and eleInvoiceNo!='' and eleInvoiceNo!='null'">
and t.ele_invoice_no = #{eleInvoiceNo} and t.ele_invoice_no = #{eleInvoiceNo}
</if> </if>
<if test="taxRate!=null and taxRate!='' and taxRate!='不征税' and taxRate != null and taxRate !='99'"> <if test="taxRate!=null and taxRate!='' and taxRate!='多税率' and taxRate != null and taxRate !='99'">
and t.tax_rate = #{taxRate} and t.tax_rate = #{taxRate}
</if> </if>
<if test="taxRate=='不征税'"> <if test="taxRate=='多税率'">
and t.tax_rate like '%,%' and t.tax_rate like '%,%'
</if> </if>
</select> </select>

@ -220,10 +220,10 @@
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'"> <if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
and t.account_period = #{accountPeriod} and t.account_period = #{accountPeriod}
</if> </if>
<if test="taxRate!=null and taxRate!='' and taxRate != '不征税' and taxRate != null and taxRate !='99'"> <if test="taxRate!=null and taxRate!='' and taxRate != '多税率' and taxRate != null and taxRate !='99'">
and t.tax_rate = #{taxRate} and t.tax_rate = #{taxRate}
</if> </if>
<if test="taxRate=='不征税'"> <if test="taxRate=='多税率'">
and t.tax_rate like '%,%' and t.tax_rate like '%,%'
</if> </if>
<!-- <if test="qsksrq != null and qsksrq != '' and qsksrq != 'null' and qsjsrq != null and qsjsrq != '' and qsjsrq != 'null'">--> <!-- <if test="qsksrq != null and qsksrq != '' and qsksrq != 'null' and qsjsrq != null and qsjsrq != '' and qsjsrq != 'null'">-->
@ -562,10 +562,10 @@
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'"> <if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'">
and t.account_period = #{accountPeriod} and t.account_period = #{accountPeriod}
</if> </if>
<if test="taxRate!=null and taxRate!='' and taxRate!='不征税' and taxRate != null and taxRate !='99'"> <if test="taxRate!=null and taxRate!='' and taxRate!='多税率' and taxRate != null and taxRate !='99'">
and t.tax_rate = #{taxRate} and t.tax_rate = #{taxRate}
</if> </if>
<if test="taxRate=='不征税'"> <if test="taxRate=='多税率'">
and t.tax_rate like '%,%' and t.tax_rate like '%,%'
</if> </if>
order by t.bzdh desc order by t.bzdh desc

Loading…
Cancel
Save