|
@@ -25,6 +25,9 @@ public class DataTask implements ITask {
|
|
|
try {
|
|
|
List<Exams> exams = Exams.dao.use("zskk").find("SELECT * FROM pacsonline.exams where exam_status=3 and institution_id=46400001 order by createdAt desc limit 30");
|
|
|
for (Exams exams2 : exams) {
|
|
|
+ try {
|
|
|
+
|
|
|
+
|
|
|
// Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
|
|
|
Record record = Db.use("connected").findFirst("select * from hhris.view_reportinfo where ACCESSIONNUMBER=?",exams2.getAccessionNum());
|
|
|
if (record == null) {
|
|
@@ -56,6 +59,10 @@ public class DataTask implements ITask {
|
|
|
exams2.update();
|
|
|
WeixinService wService = new WeixinService();
|
|
|
wService.requestWeixinQrcode(report.getId());
|
|
|
+ } catch (Exception e) {
|
|
|
+ // TODO: handle exception
|
|
|
+ continue;
|
|
|
+ }
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
// TODO: handle exception
|