MyBatis中传id字符串到sql中

  <if test="typeIds != null and typeIds.length>0" >

       and tttn.type_id in

       <foreach collection="typeIds" item="typeId" open="("  separator="," close=")" index="index">

       #{typeId}

       </foreach>

     </if>

猜你喜欢

转载自1049097489.iteye.com/blog/2345134