From 950e255b195bd173d2f49108676d4ee9d39a9936 Mon Sep 17 00:00:00 2001 From: simsevenx Date: Tue, 31 May 2022 18:00:49 +0800 Subject: [PATCH] Add builder api resultKeys(String... keys) (#52) --- .../main/java/io/xream/sqli/builder/CriteriaBuilder.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sqli-builder/src/main/java/io/xream/sqli/builder/CriteriaBuilder.java b/sqli-builder/src/main/java/io/xream/sqli/builder/CriteriaBuilder.java index 78b1d43..b4b3691 100644 --- a/sqli-builder/src/main/java/io/xream/sqli/builder/CriteriaBuilder.java +++ b/sqli-builder/src/main/java/io/xream/sqli/builder/CriteriaBuilder.java @@ -272,6 +272,15 @@ public ResultMapBuilder resultKey(String resultKey) { return this; } + public ResultMapBuilder resultKeys(String... resultKeys) { + if (resultKeys == null) + return this; + for (String resultKey : resultKeys){ + resultKey(resultKey); + } + return this; + } + /** * * @param resultKey