|
@@ -51,12 +51,13 @@ public class ViewController extends Controller {
|
|
|
}
|
|
|
|
|
|
public void tt() {
|
|
|
+ try {
|
|
|
DataService dService = ServiceFactory.getService(DataService.class);
|
|
|
Map<String, String> dateparams = new HashMap<>();
|
|
|
dateparams.put("datetime", parseStringToDate());
|
|
|
JSONArray jsonArray = dService.getReport(dateparams);
|
|
|
for (Object object : jsonArray) {
|
|
|
- try {
|
|
|
+
|
|
|
JSONObject jsonObject = JSON.parseObject(object.toString());
|
|
|
Record record = Db.use("crb").findFirst("select * from DC_PACS_REPORT where ID=?", jsonObject.getString("ID"));
|
|
|
if (record == null) {
|
|
@@ -103,13 +104,15 @@ public class ViewController extends Controller {
|
|
|
.set("SYSTEMTIME", jsonObject.getString("SYSTEMTIME"));
|
|
|
Db.use("crb").save("study", DC_PACS_XML);
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
- // TODO: handle exception
|
|
|
- this.renderText(e.toString());
|
|
|
- continue;
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
- this.renderJson(jsonArray);
|
|
|
+ } catch (Exception e) {
|
|
|
+ // TODO: handle exception
|
|
|
+ this.renderText(e.toString());
|
|
|
+// continue;
|
|
|
+ }
|
|
|
+// this.renderJson(jsonArray);
|
|
|
+ this.renderNull();
|
|
|
}
|
|
|
|
|
|
public void testus() {
|