赞
踩
批量新增:多个参数传参生成自增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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。