public static String buildEqualsWhere(Entity entity, List<Object> paramValues) {
		if (null == entity || entity.isEmpty()) {
			return StrUtil.EMPTY;
		}

		final StringBuilder sb = new StringBuilder(" WHERE ");
		boolean isNotFirst = false;
		for (Entry<String, Object> entry : entity.entrySet()) {
			if (isNotFirst) {
				sb.append(" and ");
			} else {
				isNotFirst = true;
			}
			sb.append("`").append(entry.getKey()).append("`").append(" = ?");
			paramValues.add(entry.getValue());
		}

		return sb.toString();
	}
public static String buildEqualsWhere ( Entity entity , List < Object > paramValues ) { if ( null == entity || entity . isEmpty ( ) ) { return StrUtil . EMPTY ; } final StringBuilder sb = new StringBuilder ( " WHERE " ) ; boolean isNotFirst = false ; for ( Entry < String , Object > entry : entity . entrySet ( ) ) { if ( isNotFirst ) { sb . append ( " and " ) ; } else { isNotFirst = true ; } sb . append ( "`" ) . append ( entry . getKey ( ) ) . append ( "`" ) . append ( " = ?" ) ; paramValues . add ( entry . getValue ( ) ) ; } return sb . toString ( ) ; }
构件相等条件的where语句<br>
如果没有条件语句，泽返回空串，表示没有条件

@param entity 条件实体
@param paramValues 条件值得存放List
@return 带where关键字的SQL部分