mybatis foreach 使用的時候注意了,用#{}取值纔有引號,用${}坑貨

mybatis foreach 使用的時候注意了,用#{}取值纔有引號,用${}坑貨web <if test="whereParam.ids!= null"> and `id` IN <foreach collection="whereParam.ids" index="idx" item="id" open="(" separator="," close=")"> #{id}
相關文章
相關標籤/搜索