结论:
若存在 in () 语句,要使用 #{} 预编译入参的方式,需要在 mapper.xml里 使用 foreach
==========================================================================
我们来试验:
首先先用字符串:
===============================================
接下来试验在 mapper.xml里 使用 foreach
本文来自博客园,作者:del88,转载请注明原文链接:https://www.cnblogs.com/del88/p/13835360.html