刘韬 6 years ago
parent
commit
9fb9f16f24

+ 1 - 0
DataFusion/WebRoot/WEB-INF/web.xml

@@ -13,4 +13,5 @@
     <filter-name>zskk_filter</filter-name>
     <filter-name>zskk_filter</filter-name>
     <url-pattern>/*</url-pattern>
     <url-pattern>/*</url-pattern>
 </filter-mapping>
 </filter-mapping>
+
 </web-app>
 </web-app>

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

@@ -5,6 +5,7 @@ import java.util.List;
 import com.jfinal.core.Controller;
 import com.jfinal.core.Controller;
 import com.jfinal.plugin.activerecord.Db;
 import com.jfinal.plugin.activerecord.Db;
 import com.jfinal.plugin.activerecord.Record;
 import com.jfinal.plugin.activerecord.Record;
+import com.zskk.model.Reports;
 
 
 public class ViewController extends Controller {
 public class ViewController extends Controller {
 
 
@@ -13,7 +14,7 @@ public class ViewController extends Controller {
 	 */
 	 */
 	public void executeSql() {
 	public void executeSql() {
 		try {
 		try {
-			List<Record>  d =  Db.use("zskk").find(this.getPara("sqlStr"));
+			List<Reports>  d =  Reports.dao.use("zskk").find("SELECT * FROM doctors where hid = 74100001");
 			this.renderJson(d);
 			this.renderJson(d);
 		} catch (Exception e) {
 		} catch (Exception e) {
 			// TODO: handle exception
 			// TODO: handle exception