刘韬 4 years ago
parent
commit
a593e68508
1 changed files with 9 additions and 2 deletions
  1. 9 2
      DataFusion/src/com/zskk/control/ViewController.java

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

@@ -94,8 +94,15 @@ public class ViewController extends Controller {
 	}
 	
 	public void abcd() {
-		List<Record> records = Db.use("local").find("select StudyInstanceUID,PatientStudyDate from reportinfo_image where PatientStudyDate>? group by PatientStudyDate,StudyInstanceUID order by PatientStudyDate desc", parseStringToDate());
-		this.renderJson(records);
+		try {
+			List<Record> records = Db.use("local").find("select StudyInstanceUID,PatientStudyDate from reportinfo_image where PatientStudyDate>? group by PatientStudyDate,StudyInstanceUID order by PatientStudyDate desc", parseStringToDate());
+			this.renderJson(records);
+		} catch (Exception e) {
+			// TODO: handle exception
+			this.renderText(e.toString());
+
+		}
+		
 
 	}