|
@@ -70,8 +70,23 @@ public class ViewController extends Controller {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 在被连接数据库执行sql语句
|
|
|
+ */
|
|
|
+ public void postSql2() {
|
|
|
+ try {
|
|
|
+ DataService dService = ServiceFactory.getService(DataService.class);
|
|
|
+ String a = dService.getReport2("11H971155");
|
|
|
+ this.renderText(a);
|
|
|
+ } catch (Exception e) {
|
|
|
+ // TODO: handle exception
|
|
|
+ this.renderText(e.toString());
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public void testConn() {
|
|
|
try {
|
|
|
DruidPlugin druidPluginConnected = createConnectedDruidPlugin();
|