mybatis传入list判断是否是空

2019-12-07 19:42:41 浏览数 (1)

代码语言:javascript复制
<if test="activityType != null and activityType.size() > 0" >
  and a.TypeId in
  <foreach collection="activityType" item="activityType" index="index" open="(" close=")" separator=",">
  #{activityType}
  </foreach>
</if>

0 人点赞