|
@@ -58,9 +58,11 @@ public class ViewController extends Controller {
|
|
|
JSONArray jsonArray = dService.getReport(dateparams);
|
|
|
for (Object object : jsonArray) {
|
|
|
JSONObject jsonObject = JSON.parseObject(object.toString());
|
|
|
- this.renderJson(jsonObject);
|
|
|
-// Record record = Db.use("crb").findFirst("select * from DC_PACS_REPORT where ID=?", jsonObject.getString("ID"));
|
|
|
-// if (record == null) {
|
|
|
+
|
|
|
+ Record record = Db.use("crb").findFirst("select * from DC_PACS_REPORT where ID=?", jsonObject.getString("ID"));
|
|
|
+ if (record == null) {
|
|
|
+ this.renderJson(record);
|
|
|
+ }
|
|
|
// Record DC_PACS_REPORT = new Record()
|
|
|
// .set("ID", jsonObject.getString("ID"))
|
|
|
// .set("REPORT_ID", jsonObject.getString("REPORT_ID"))
|