Commit 64647a89a0072a9727d3e1372492509ecb4d5827
1 parent
b43673dc
解决批量更新报错 issues/IZA3Q
Showing
1 changed file
with
5 additions
and
1 deletions
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/config/mybatis/MybatisInterceptor.java
... | ... | @@ -106,7 +106,11 @@ public class MybatisInterceptor implements Interceptor { |
106 | 106 | Field[] fields = null; |
107 | 107 | if (parameter instanceof ParamMap) { |
108 | 108 | ParamMap<?> p = (ParamMap<?>) parameter; |
109 | - parameter = p.get("param1"); | |
109 | + if (p.containsKey("et")) { | |
110 | + parameter = p.get("et"); | |
111 | + } else { | |
112 | + parameter = p.get("param1"); | |
113 | + } | |
110 | 114 | fields = oConvertUtils.getAllFields(parameter); |
111 | 115 | } else { |
112 | 116 | fields = oConvertUtils.getAllFields(parameter); |
... | ... |