|
|
|
@ -1,9 +1,7 @@
|
|
|
|
|
package com.fr.plugin.db.es.fun.help; |
|
|
|
|
|
|
|
|
|
import com.fanruan.api.util.ArrayKit; |
|
|
|
|
import com.fanruan.api.util.RenderKit; |
|
|
|
|
import com.fr.base.Parameter; |
|
|
|
|
import com.fr.base.TemplateUtils; |
|
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
|
import com.fr.stable.ParameterProvider; |
|
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
@ -17,7 +15,7 @@ import java.util.Map;
|
|
|
|
|
public class RenderUtils { |
|
|
|
|
|
|
|
|
|
public static String calculateQuery(String query, ParameterProvider[] ps) { |
|
|
|
|
if (ArrayUtils.isEmpty(ps)) { |
|
|
|
|
if (ArrayKit.isEmpty(ps)) { |
|
|
|
|
return query; |
|
|
|
|
} |
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|