소스 검색

供应商资源联想接口修改

dongbw 7 년 전
부모
커밋
43067c0fcd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/uas/platform/b2b/service/impl/VendorsServiceImpl.java

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

@@ -450,7 +450,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 +
 				" select " + field + " from v$products where " + condition + " group by " + field +
-				") where rownum <= 10";
+				") a limit 10";
 		return commonDao.query(productSql, Product.class);
 		return commonDao.query(productSql, Product.class);
 	}
 	}