private String buildCondition(LogicalOperator logicalOperator, Condition... conditions) {
		if (ArrayUtil.isEmpty(conditions)) {
			return StrUtil.EMPTY;
		}
		if (null == logicalOperator) {
			logicalOperator = LogicalOperator.AND;
		}

		final StringBuilder conditionStrBuilder = new StringBuilder();
		boolean isFirst = true;
		for (Condition condition : conditions) {
			// 添加逻辑运算符
			if (isFirst) {
				isFirst = false;
			} else {
				// " AND " 或者 " OR "
				conditionStrBuilder.append(StrUtil.SPACE).append(logicalOperator).append(StrUtil.SPACE);
			}

			// 构建条件部分："name = ?"、"name IN (?,?,?)"、"name BETWEEN ？AND ？"、"name LIKE ?"
			conditionStrBuilder.append(condition.toString(this.paramValues));
		}

		return conditionStrBuilder.toString();
	}
private String buildCondition ( LogicalOperator logicalOperator , Condition ... conditions ) { if ( ArrayUtil . isEmpty ( conditions ) ) { return StrUtil . EMPTY ; } if ( null == logicalOperator ) { logicalOperator = LogicalOperator . AND ; } final StringBuilder conditionStrBuilder = new StringBuilder ( ) ; boolean isFirst = true ; for ( Condition condition : conditions ) { if ( isFirst ) { isFirst = false ; } else { conditionStrBuilder . append ( StrUtil . SPACE ) . append ( logicalOperator ) . append ( StrUtil . SPACE ) ; } conditionStrBuilder . append ( condition . toString ( this . paramValues ) ) ; } return conditionStrBuilder . toString ( ) ; }
构建组合条件<br>
例如：name = ? AND type IN (?, ?) AND other LIKE ?

@param logicalOperator 逻辑运算符
@param conditions 条件对象
@return 构建后的SQL语句条件部分