From e8eafe8842d43c358f2f250c9ada3a91b06ffeb3 Mon Sep 17 00:00:00 2001 From: yangfuhai Date: Tue, 27 Nov 2018 20:27:15 +0800 Subject: [PATCH] jboot v1.7.4 release --- src/main/java/io/jboot/db/model/Columns.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/io/jboot/db/model/Columns.java b/src/main/java/io/jboot/db/model/Columns.java index 938bb55fc..98d46bb6b 100644 --- a/src/main/java/io/jboot/db/model/Columns.java +++ b/src/main/java/io/jboot/db/model/Columns.java @@ -220,7 +220,7 @@ public List getList() { } - public String toCacheKey() { + public String getCacheKey() { if (isEmpty()) return null; List columns = new ArrayList<>(cols); @@ -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()); } }