Просмотр исходного кода

更新ERP获取企业信息的分页方法

hejq 8 лет назад
Родитель
Сommit
1e3f6c4553

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

@@ -775,7 +775,7 @@ public class EnterpriseServiceImpl implements EnterpriseService {
 	    if (!StringUtils.isEmpty(registerdate)) {
 	        sql = sql + "where to_char(en_time, 'yyyy-mm-dd') >= '" + registerdate + "' ";
         }
-        sql = sql + "order by en_time asc) a where rownum <= " + rownum + " ) where rn >= " + rn;
+        sql = sql + "order by en_time asc) a) where rn >= " + rn + " and rn <= " + rownum;
 		return commonDao.query(sql, EnterpriseNameAndUU.class);
 	}
 }