刘韬 4 years ago
parent
commit
5f463dfabe

+ 1 - 1
DataFusion/res/config.properties

@@ -4,4 +4,4 @@ jdbcUrl_connected  = jdbc:oracle:thin:@192.168.60.5:1521:ris
 user_connected 	   = reportview
 user_connected 	   = reportview
 password_connected = reportview
 password_connected = reportview
 #DATA-Parms
 #DATA-Parms
-institution_id     = 47600001
+institution_id     = 75000001

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

@@ -32,8 +32,14 @@ public class ViewController extends Controller {
 	 * 在被连接数据库执行sql语句
 	 * 在被连接数据库执行sql语句
 	 */
 	 */
 	public void executeSql() {
 	public void executeSql() {
-		List<Record> d = Db.use("connected").find(this.getPara("sqlstr"));
-		this.renderJson(d);
+		try {
+			List<Record> d = Db.use("connected").find(this.getPara("sqlstr"));
+			this.renderJson(d);
+		} catch (Exception e) {
+			// TODO: handle exception
+			this.renderText(e.toString());
+		}
+		
 	}
 	}
 
 
 	public void testConn() {
 	public void testConn() {