优点:
  1、美化代码
  2、灵活性
  3、鲁棒性

 

一、

变更前

<if test =' name != null and name != \"\"'>
    AND name =#{name}
</if>

变更后

<if test =' @cn.hutool.core.util@isNotBlank(name)'>
    AND name =#{name}
</if>

 

二、

变更前

    AND status IN (0,1)

变更后

    AND status IN (${@com.X.X.X.XEnum@getNormalStatus()})

 

相关文章:

  • 2022-02-09
  • 2022-12-23
  • 2021-12-17
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-13
  • 2021-09-19
  • 2021-10-18
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案