提交 2a992551 编写于 作者: budgerigar's avatar budgerigar

修复updateBatchById的org.apache.ibatis.binding.BindingException: Parameter...

修复updateBatchById的org.apache.ibatis.binding.BindingException: Parameter 'param1' not found. Available parameters are [et]异常
上级 b73eeffc
......@@ -106,7 +106,11 @@ public class MybatisInterceptor implements Interceptor {
Field[] fields = null;
if (parameter instanceof ParamMap) {
ParamMap<?> p = (ParamMap<?>) parameter;
parameter = p.get("param1");
if (p.containsKey("et")) {
parameter = p.get("et");
} else {
parameter = p.get("param1");
}
fields = oConvertUtils.getAllFields(parameter);
} else {
fields = oConvertUtils.getAllFields(parameter);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册