|
@@ -55,10 +55,13 @@ public class ViewController extends Controller {
|
|
|
DataService dService = ServiceFactory.getService(DataService.class);
|
|
|
Map<String, String> dateparams = new HashMap<>();
|
|
|
dateparams.put("datetime", parseStringToDate());
|
|
|
+ String aaa = "";
|
|
|
JSONArray jsonArray = dService.getReport(dateparams);
|
|
|
for (Object object : jsonArray) {
|
|
|
JSONObject jsonObject = JSON.parseObject(object.toString());
|
|
|
String REPORT_ID = jsonObject.getString("REPORT_ID");
|
|
|
+
|
|
|
+ aaa=aaa+REPORT_ID;
|
|
|
// Record record = Db.use("crb").findFirst("select * from DC_PACS_REPORT where ID=?", jsonObject.getString("ID"));
|
|
|
// if (record == null) {
|
|
|
// Record DC_PACS_REPORT = new Record()
|
|
@@ -93,8 +96,7 @@ public class ViewController extends Controller {
|
|
|
// Db.use("crb").save("DC_PACS_REPORT", DC_PACS_REPORT);
|
|
|
// }
|
|
|
// Record record2 = Db.use("crb").findFirst("select * from DC_PACS_XML where REPORT_ID=?", REPORT_ID);
|
|
|
-
|
|
|
-// this.renderText(jsonObject.getString("REPORT_ID"));
|
|
|
+ this.renderText(aaa);
|
|
|
// if (record2 == null) {
|
|
|
// Record DC_PACS_XML = new Record()
|
|
|
// .set("REPORT_ID", REPORT_ID)
|