Pass id string to sql in MyBatis

  <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>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326450715&siteId=291194637