1.通用查询语句生成代码
/**
* author: zhanggw
* 创建时间: 2021/9/27
*/
public class SearchUtil {
private final static Logger logger = LoggerFactory.getLogger(SearchUtil.class);
public final static String OPERATOR_GTE = ">=";
public final static String OPERATOR_LTE = "<=";
public final static String OPERATOR_NET = "!=";
public final static String OPERATOR_GT = ">";
public final static String OPERATOR_ET = "=";
public final static String OPERATOR_LT = "<";
public final static String OPERATOR_AND = "AND";
public final static String OPERATOR_OR = "OR";
private final static List<String> OPERATOR_LIST = new ArrayList<>(Arrays.asList(OPERATOR_GTE,OPERATOR_LTE,OPERATOR_NET,OPERATOR_GT,OPERATOR_ET,OPERATOR_LT));
/**
* <一句话功能简述> 生成通用es查询
* <功能详细描述>
*{