|
@@ -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());
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|