结论:

若存在 in () 语句,要使用 #{} 预编译入参的方式,需要在 mapper.xml里 使用 foreach

==========================================================================

我们来试验:

首先先用字符串:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

===============================================

接下来试验在 mapper.xml里 使用 foreach

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

posted on 2020-10-18 15:17  del88  阅读(439)  评论(1编辑  收藏  举报