### 当前使用版本(必须填写清楚,否则不予处理)
2.3.1
(sqlserver2008R2 )
jdbc驱动
```
com.microsoft.sqlserver
sqljdbc4
4.0
```
### 该问题是怎么引起的?
调用批量插入报错
### 重现步骤
```
//保存角色与菜单关系
List list = new ArrayList<>(menuIdList.size());
for(Long menuId : menuIdList){
SysRoleMenuEntity sysRoleMenuEntity = new SysRoleMenuEntity();
sysRoleMenuEntity.setMenuId(menuId);
sysRoleMenuEntity.setRoleId(roleId);
list.add(sysRoleMenuEntity);
}
this.insertBatch(list);
```
### 报错信息
```
Error flushing statements. Cause: org.apache.ibatis.executor.ExecutorException: Error getting generated key or setting result to parameter object. Cause: com.microsoft.sqlserver.jdbc.SQLServerException: 必