刘韬 1 year ago
parent
commit
d52d4946eb
1 changed files with 5 additions and 3 deletions
  1. 5 3
      DataFusion/src/com/zskk/control/ViewController.java

+ 5 - 3
DataFusion/src/com/zskk/control/ViewController.java

@@ -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"))