问题:
money_search_end != ‘0’
为0时依然继续执行

解决方案:

1.单个字符要用''.toString()

2.用双引号“”,当然text的引号要改为单引号‘’

      <if test="money_search_start != null and money_search_start != '' and money_search_start != '0'.toString()">
        and acc.money <![CDATA[ >= ]]> #{money_search_start}
      </if>
      <if test='money_search_end != null and money_search_end != "" and money_search_end != "0" '>
        and acc.money <![CDATA[ <= ]]> #{money_search_end}
      </if>

 

相关文章:

  • 2021-09-26
  • 2021-10-30
  • 2021-10-15
  • 2022-03-06
  • 2022-12-23
  • 2020-07-28
  • 2021-10-04
  • 2022-03-03
猜你喜欢
  • 2021-11-14
  • 2021-09-22
  • 2022-12-23
  • 2021-12-12
  • 2021-08-28
  • 2021-08-10
  • 2021-12-28
相关资源
相似解决方案