Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ private List<Field> getField(T t, Boolean ignoreNull) {

// 过滤数据库中不存在的字段,以及自增列
List<Field> filterField;
Stream<Field> fieldStream = CollUtil.toList(fields).stream().filter(field -> ObjectUtil.isNull(field.getAnnotation(Ignore.class)) || ObjectUtil.isNull(field.getAnnotation(Pk.class)));
Stream<Field> fieldStream = CollUtil.toList(fields).stream().filter(field -> ObjectUtil.isNull(field.getAnnotation(Ignore.class)) && ObjectUtil.isNull(field.getAnnotation(Pk.class)));

// 是否过滤字段值为null的字段
if (ignoreNull) {
Expand Down
4 changes: 2 additions & 2 deletions demo-template-beetl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public class UserController {
}
```

## index.html
## index.btl

```jsp
<!doctype html>
Expand All @@ -152,7 +152,7 @@ public class UserController {
</html>
```

## login.html
## login.btl

```jsp
<!doctype html>
Expand Down