判断不为空
where 1=1 // 此句用来处理某些全要判空的情况
<
if test="compShopMO.uciCompName != null and compShopMO.uciCompName != ''"> and USER_COMPANY_INFO.UCI_COMP_NAME = #{compShopMO.uciCompName} </if>
判断为空
<
if test="compShopMO.uciCompName == null or compShopMO.uciCompName == ''"> and USER_COMPANY_INFO.UCI_COMP_NAME = #{compShopMO.uciCompName} </if>

 

相关文章:

  • 2021-04-09
  • 2022-12-23
  • 2022-01-28
  • 2021-12-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案