mybatis判断list是否为空

刺骨的言语ヽ痛彻心扉 2022-12-25 01:49 362阅读 0赞

前言

  1. <if test="list!= null and list.size()>0" >
  2. and s.orderstatus in
  3. <foreach collection="list" item="item" open="(" close=")" separator="," >
  4. #{item}
  5. </foreach>
  6. </if>

发表评论

表情:
评论列表 (有 0 条评论,362人围观)

还没有评论,来说两句吧...

相关阅读