sql in mapper.xml 语句

<if test="orderStatusArr!=null">
AND od.STATUS in 
<foreach collection="orderStatusArr" index="index" item="item" open="(" separator="," close=")">
           #{item}
        </foreach>
</if>

猜你喜欢

转载自blog.csdn.net/qq_42310995/article/details/80680766