mybatis in

<select id="selectAccountByPKeysAndOtherCondition" resultType="AccountEntity"     resultMap="accountResultMap"> 
        select 'false' as QUERYID,
        <include refid="Base_Column_List" />
        from points_account
        where status=#{status}
        and id in
         <foreach item="item"  collection="ids"  open="(" separator="," close=")"> 
         #{item}  
         </foreach>
         </select>

猜你喜欢

转载自yunlong167167.iteye.com/blog/2082944