public static <T> String createCountSqlByProp(Class<T> clz, Map<String, Object> props) throws BasException {
		if (clz != null) {
			StringBuffer sql = new StringBuffer();
			if (clz.isAnnotationPresent(Table.class)) {
				Table table = clz.getAnnotation(Table.class);
				sql.append("select count(*) as num from ").append(table.value());
			}

			if (props != null && props.size() > 0) {
				sqlSetWhereOrSetOrValues(clz, sql, props, BasConstants.SQL_SELECT, BasConstants.SQL_WHERE);
			}

			log.info(MessageUtil.getBasText("jdbc-util-sqlstr", sql.toString()));
			return sql.toString();
		} else {
			throw new BasException(BasErrCode.E10017);
		}
	}