mybatis请求对象包含List

xiaoxiao2022-06-03  14

 

<if test="mcomIdList != null and mcomIdList.size() > 0">                    AND tp.MCOM_ID IN                  <foreach item="item" index="index" collection="mcomIdList" open="(" separator="," close=")">                     #{mcomIdList[${index}],jdbcType=BIGINT}                 </foreach>  </if>

<if test="mcomIdList != null and mcomIdList.size() > 0">

        AND tp.MCOM_ID IN          <foreach collection="mcomIdList" open="(" close=")" separator="," index="index" item="item">             #{item}         </foreach>

 </if>

 

转载请注明原文地址: https://www.6miu.com/read-4915039.html

最新回复(0)