|
@@ -21,9 +21,9 @@ public class ViewController extends Controller {
|
|
|
/**
|
|
|
* 在被连接数据库执行sql语句
|
|
|
*/
|
|
|
- public void executeSql(String sqlStr) {
|
|
|
+ public void executeSql() {
|
|
|
try {
|
|
|
- List<Record> d = Db.use("connected").find(this.getPara("sqlStr"));
|
|
|
+ List<Record> d = Db.use("connected").find("select * from caller where rownum <= 10");
|
|
|
this.renderJson(d);
|
|
|
} catch (Exception e) {
|
|
|
// TODO: handle exception
|