Skip to content

Commit

Permalink
jboot v1.7.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
yangfuhai committed Nov 27, 2018
1 parent d8384a0 commit e8eafe8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/io/jboot/db/model/Columns.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public List<Column> getList() {
}


public String toCacheKey() {
public String getCacheKey() {
if (isEmpty()) return null;

List<Column> columns = new ArrayList<>(cols);
Expand Down Expand Up @@ -270,19 +270,19 @@ private String getLogicStr(String logic) {

public static void main(String[] args) {
Columns columns = Columns.create();
System.out.println(columns.toCacheKey());
System.out.println(columns.getCacheKey());

columns.add("name", "zhangsan");
System.out.println(columns.toCacheKey());
System.out.println(columns.getCacheKey());

columns.ge("age", 10);
System.out.println(columns.toCacheKey());
System.out.println(columns.getCacheKey());

columns.is_not_null("price");
System.out.println(columns.toCacheKey());
System.out.println(columns.getCacheKey());

columns.is_null("nickname");
System.out.println(columns.toCacheKey());
System.out.println(columns.getCacheKey());
}

}

0 comments on commit e8eafe8

Please sign in to comment.