|
@@ -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
|