优化数据库查询长度的限制

This commit is contained in:
seagull 2017-11-24 10:05:48 +08:00
parent ee0ab54da0
commit 8b2af48154
2 changed files with 3 additions and 3 deletions

View File

@ -267,7 +267,7 @@
<dependency>
<groupId>com.caucho</groupId>
<artifactId>hessian</artifactId>
<version>3.2.1</version>
<version>3.1.5</version>
</dependency>
<!--由于Oracle JDBC驱动包是需要Oracle官方授权才能被下载如果原maven私库中无此包请手动添加至私库再在maven中操作update
project -->

View File

@ -80,11 +80,11 @@ public class DBOperation {
}
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.append("查询出来的数据太多啦(超过100项)!我显示不过来哦。。。。");
break;
}
}*/
}
return sb.toString();
}catch(Exception e){