正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -228,6 +228,10 @@ public class JeecgController<T, S extends IService<T>> { | @@ -228,6 +228,10 @@ public class JeecgController<T, S extends IService<T>> { | ||
| 228 | Field[] fields = data.getClass().getDeclaredFields(); | 228 | Field[] fields = data.getClass().getDeclaredFields(); |
| 229 | boolean hasNonNullValue = false; | 229 | boolean hasNonNullValue = false; |
| 230 | for (Field field : fields) { | 230 | for (Field field : fields) { |
| 231 | + // 排除 serialVersionUID 字段 | ||
| 232 | + if ("serialVersionUID".equals(field.getName())) { | ||
| 233 | + continue; | ||
| 234 | + } | ||
| 231 | field.setAccessible(true); // 设置字段可访问 | 235 | field.setAccessible(true); // 设置字段可访问 |
| 232 | try { | 236 | try { |
| 233 | // 获取字段值,并检查是否为空 | 237 | // 获取字段值,并检查是否为空 |
-
请 注册 或 登录 后发表评论