Browse Source

联想词查询语句去掉排序。加快速度

dongbw 8 years ago
parent
commit
05cd916b4e

+ 1 - 1
src/main/java/com/uas/platform/b2b/service/impl/VendorsServiceImpl.java

@@ -459,7 +459,7 @@ public class VendorsServiceImpl implements VendorService {
 		}
 		}
 		String value = field.replace("pr_", "");
 		String value = field.replace("pr_", "");
 		String productSql = "select " + field + " as " + value +" from (" +
 		String productSql = "select " + field + " as " + value +" from (" +
-				" select " + field + " from v$products where " + condition + " group by " + field + " order by count(1) desc" +
+				" select " + field + " from v$products where " + condition + " group by " + field +
 				") where rownum <= 10";
 				") where rownum <= 10";
 		return commonDao.query(productSql, Product.class);
 		return commonDao.query(productSql, Product.class);
 	}
 	}