Authored by qinchao

修改sql查询的bug

... ... @@ -289,7 +289,7 @@ public class SqlOperateServiceImpl implements SqlOperateService {
st_pi.setMaxRows(1);
boolean countSqlExeFlag=false;
String countSql=this.ayaSqlToCount(sql.substring(6));
/* String countSql=this.ayaSqlToCount(sql.substring(6));
if(StringUtils.isNotBlank(countSql)){
try{
rs_pi = st_pi.executeQuery(countSql);
... ... @@ -298,7 +298,7 @@ public class SqlOperateServiceImpl implements SqlOperateService {
log.error("query4Table exe select count error "+countSql);
countSqlExeFlag=false;
}
}
}*/
if(!countSqlExeFlag){
rs_pi = st_pi.executeQuery(" select count(1) from ( "+sql+" ) _tmp_sqloeaer_49_cnt ");
}
... ...