|
@@ -61,7 +61,6 @@ public class ViewController extends Controller {
|
|
|
|
|
|
Record record = Db.use("crb").findFirst("select * from DC_PACS_REPORT where ID=?", jsonObject.getString("ID"));
|
|
Record record = Db.use("crb").findFirst("select * from DC_PACS_REPORT where ID=?", jsonObject.getString("ID"));
|
|
if (record == null) {
|
|
if (record == null) {
|
|
-
|
|
|
|
Record DC_PACS_REPORT = new Record()
|
|
Record DC_PACS_REPORT = new Record()
|
|
.set("ID", jsonObject.getString("ID"))
|
|
.set("ID", jsonObject.getString("ID"))
|
|
.set("REPORT_ID", jsonObject.getString("REPORT_ID"))
|
|
.set("REPORT_ID", jsonObject.getString("REPORT_ID"))
|
|
@@ -93,8 +92,8 @@ public class ViewController extends Controller {
|
|
.set("STATE", "0");
|
|
.set("STATE", "0");
|
|
Db.use("crb").save("DC_PACS_REPORT", DC_PACS_REPORT);
|
|
Db.use("crb").save("DC_PACS_REPORT", DC_PACS_REPORT);
|
|
this.renderJson(DC_PACS_REPORT);
|
|
this.renderJson(DC_PACS_REPORT);
|
|
-
|
|
|
|
- }}
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
// Record record2 = Db.use("crb").findFirst("select * from DC_PACS_XML where REPORT_ID=?", jsonObject.getString("REPORT_ID"));
|
|
// Record record2 = Db.use("crb").findFirst("select * from DC_PACS_XML where REPORT_ID=?", jsonObject.getString("REPORT_ID"));
|
|
// if (record2 == null) {
|
|
// if (record2 == null) {
|
|
// Record DC_PACS_XML = new Record()
|
|
// Record DC_PACS_XML = new Record()
|