刘韬 1 year ago
parent
commit
e95221f65c
1 changed files with 8 additions and 0 deletions
  1. 8 0
      DataFusion/src/com/zskk/control/ViewController.java

+ 8 - 0
DataFusion/src/com/zskk/control/ViewController.java

@@ -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'");