优化数据库查询长度的限制
This commit is contained in:
parent
ee0ab54da0
commit
8b2af48154
2
pom.xml
2
pom.xml
|
@ -267,7 +267,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.caucho</groupId>
|
<groupId>com.caucho</groupId>
|
||||||
<artifactId>hessian</artifactId>
|
<artifactId>hessian</artifactId>
|
||||||
<version>3.2.1</version>
|
<version>3.1.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!--由于Oracle JDBC驱动包是需要Oracle官方授权才能被下载,如果原maven私库中无此包,请手动添加至私库再在maven中操作update
|
<!--由于Oracle JDBC驱动包是需要Oracle官方授权才能被下载,如果原maven私库中无此包,请手动添加至私库再在maven中操作update
|
||||||
project -->
|
project -->
|
||||||
|
|
|
@ -80,11 +80,11 @@ public class DBOperation {
|
||||||
}
|
}
|
||||||
sb.append(rs.getObject(metaData.getColumnName(i)).toString()).append("%");
|
sb.append(rs.getObject(metaData.getColumnName(i)).toString()).append("%");
|
||||||
}
|
}
|
||||||
if(DBOperation.sumString(sb.toString(), "%")>500){
|
/* if(DBOperation.sumString(sb.toString(), "%")>500){
|
||||||
sb.delete(0,sb.length());
|
sb.delete(0,sb.length());
|
||||||
sb.append("查询出来的数据太多啦(超过100项)!我显示不过来哦。。。。");
|
sb.append("查询出来的数据太多啦(超过100项)!我显示不过来哦。。。。");
|
||||||
break;
|
break;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
|
|
Loading…
Reference in New Issue