当前位置:   article > 正文

Could not determine which parameter to assign generated keys to. Note that when there are multip)报错

could not determine which parameter to assign generated keys to. note that w

批量新增:多个参数传参生成自增id问题报错:

详细错误:Could not determine which parameter to assign generated keys to. 
Note that when there are multiple parameters, 'keyProperty' must include the parameter name (e.g. 'param.id'). 
Specified key properties are [warnId] and available parameters are [param, list, param1, param2]

原因:不能确定生成的id分配给哪个参数

代码:

 

 解决,在id对应的参数加入具体引入

warnId字段取自list,则list.warnId

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/972452
推荐阅读
相关标签
  

闽ICP备14008679号