MyBatis中association中关于column传入多个参数值

MyBatis中association中关于column传入多个参数值

今天用到MyBatis的一对一级联,但是最后返回的结果就是不对,让我们康康问题出现到哪里了?

一 开始出错的时候

MyBatis中association中关于column传入多个参数值MyBatis中association中关于column传入多个参数值
结果就是:
MyBatis中association中关于column传入多个参数值

二 实验的过程

根据结果我指定了一个方案,因为只有product_shop_id没有值,于是我一次性就只传一个值,我看是否是因为他是product_shop_id的问题而导致没有值,还是因为传多个值导致的写法错误

mapper:
MyBatis中association中关于column传入多个参数值

mapper.xml:
MyBatis中association中关于column传入多个参数值
MyBatis中association中关于column传入多个参数值

结果:
MyBatis中association中关于column传入多个参数值

所以肯定是穿多个参数格式不对!

三 修正

MyBatis中association中关于column传入多个参数值