|
@@ -25,7 +25,7 @@ public class USReportTask implements ITask {
|
|
|
// TODO Auto-generated method stub
|
|
|
DataService dService = ServiceFactory.getService(DataService.class);
|
|
|
|
|
|
- List<Record> records = Db.use("connected").find("select top 10 * from reportinfo where modality = 'US' order by reviewdate desc");
|
|
|
+ List<Record> records = Db.use("connected").find("select * from reportinfo where modality = 'US' order by reviewdate desc limit 10");
|
|
|
for (Record record : records) {
|
|
|
Record recordus = Db.use("local").findFirst("select * from usexam where code = ?", record.getStr("studyuid"));
|
|
|
if (recordus != null) {
|
|
@@ -113,14 +113,14 @@ public class USReportTask implements ITask {
|
|
|
dService.saveReport(paramsreport);
|
|
|
});
|
|
|
|
|
|
- //上传报告附件
|
|
|
- Map<String, String> annex_params = new HashMap<>();
|
|
|
- annex_params.put("institution_id", PropKit.get("institution_id"));
|
|
|
- annex_params.put("type", "1");
|
|
|
- annex_params.put("code", examid);
|
|
|
- //附件类型1.mp4 2.pdf 3.jpeg
|
|
|
- annex_params.put("annex_class_code", "3");
|
|
|
- dService.saveAnnex(annex_params, record.getStr("report_url"));
|
|
|
+// //上传报告附件
|
|
|
+// Map<String, String> annex_params = new HashMap<>();
|
|
|
+// annex_params.put("institution_id", PropKit.get("institution_id"));
|
|
|
+// annex_params.put("type", "1");
|
|
|
+// annex_params.put("code", examid);
|
|
|
+// //附件类型1.mp4 2.pdf 3.jpeg
|
|
|
+// annex_params.put("annex_class_code", "3");
|
|
|
+// dService.saveAnnex(annex_params, record.getStr("report_url"));
|
|
|
|
|
|
Record usinfo = new Record().set("code", record.getStr("studyuid"))
|
|
|
.set("createAt", parseStringToDateTime()).set("updateAt", parseStringToDateTime());
|