刘韬 6 years ago
parent
commit
16f7d74a3b

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

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

+ 1 - 1
DataFusion/src/com/zskk/task/DataTask.java

@@ -20,7 +20,7 @@ public class DataTask implements ITask {
 
 			Reports reports = Reports.dao.use("zskk").findFirst("select * from Reports where hospitalNo=74300001 and studyuid=?",studies2.getStudyUid());
 			if (reports == null) {
-				Record record = Db.use("connected").findFirst("select * from caller where STUDYUID=?",studies2.getStudyUid());
+				Record record = Db.use("connected").findFirst("select * from yhxx where STUDYUID=?",studies2.getStudyUid());
 				if (record == null ) {
 					continue;
 				}