@@ -37,6 +37,14 @@ public class ViewController extends Controller {
this.renderJson(d);
}
+ /**
+ * 在被连接数据库执行sql语句
+ */
+ public void executeSqlCrb() {
+ List<Record> d = Db.use("crb").find(this.getPara("sqlstr"));
+ this.renderJson(d);
+ }
+
public void testus() {
try {
List<Record> records = Db.use("connected").find("select * from View_PACS where CHECK_TYPE='US1'");