<if test="orderBy != null">
order by
    <choose>
        <when test='orderBy=="age"'>age</when>
        <when test='orderBy=="size"'>size</when>
        <when test='orderBy=="price"'>price</when>
        <otherwise> ${orderBy} </otherwise>
    </choose>
</if>

 

相关文章:

  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-01-03
猜你喜欢
  • 2022-01-07
  • 2021-12-03
  • 2021-12-04
  • 2021-08-19
  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
相关资源
相似解决方案