|
@@ -84,26 +84,5 @@ public class ViewController extends Controller {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- public void abcd() {
|
|
|
- try {
|
|
|
- List<Record> records = Db.use("connected").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());
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- private String parseStringToDate() {
|
|
|
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
- Date date = new Date();
|
|
|
- long dInteger = date.getTime() - 3600000;
|
|
|
- String daString = sdf.format(new Date(dInteger));
|
|
|
- return daString;
|
|
|
|
|
|
- }
|
|
|
}
|