|
@@ -67,14 +67,17 @@ public class ViewController extends Controller {
|
|
|
|
|
|
DataService dService = ServiceFactory.getService(DataService.class);
|
|
|
|
|
|
-// List<Record> records = Db.use("connected").find("SELECT * FROM (select * from reportinfo where REVIEWDATE>to_date('2022-03-08 00:00:00','YYYY-MM-DD HH24:MI:SS')and rownum < 900)ORDER BY REVIEWDATE DESC");
|
|
|
+ List<Record> records = Db.use("connected").find("SELECT * FROM (select * from reportinfo where REVIEWDATE>to_date('2022-03-08 00:00:00','YYYY-MM-DD HH24:MI:SS')and rownum < 900)ORDER BY REVIEWDATE DESC");
|
|
|
|
|
|
- List<Record> records = Db.use("connected").find("select * from reportinfo where STUDYUID='1.2.4.3387.867318.220321442.133477621.1556020533.801511205'");
|
|
|
+// List<Record> records = Db.use("connected").find("select * from reportinfo where STUDYUID='1.2.4.3387.867318.220321442.133477621.1556020533.801511205'");
|
|
|
try {
|
|
|
if (records == null) {
|
|
|
return;
|
|
|
}
|
|
|
for (Record record : records) {
|
|
|
+ try {
|
|
|
+
|
|
|
+
|
|
|
if (record.getStr("IMPRESSION") == null && record.getStr("DESCRPTION") == null
|
|
|
&& record.getStr("REVIEWDOCTOR") == null) {
|
|
|
continue;
|
|
@@ -133,6 +136,10 @@ try {
|
|
|
// tService.execute(() -> {
|
|
|
dService.saveReport(params);
|
|
|
// });
|
|
|
+ } catch (Exception e) {
|
|
|
+ // TODO: handle exception
|
|
|
+ continue;
|
|
|
+ }
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
// TODO: handle exception
|