|
@@ -49,6 +49,7 @@ public class ViewController extends Controller {
|
|
|
//List<Record> d = Db.use("connected").find(this.getPara("sqlStr"));
|
|
|
List<Record> examsd = new ArrayList<Record>();
|
|
|
|
|
|
+ String ssString="";
|
|
|
List<Exams> exams = Exams.dao.use("zskk").find("SELECT * FROM pacsonline.exams where exam_status=3 and institution_id=44000003 order by createdAt desc limit 100");
|
|
|
for (Exams exams2 : exams) {
|
|
|
try {
|
|
@@ -59,8 +60,6 @@ public class ViewController extends Controller {
|
|
|
}
|
|
|
|
|
|
Record record = Db.use("connected").findFirst("select * from yxjK where STUDYUID=?",recordTemp.getStr("F_STU_NO"));
|
|
|
-
|
|
|
-
|
|
|
if (record == null) {
|
|
|
continue;
|
|
|
}
|
|
@@ -81,7 +80,7 @@ public class ViewController extends Controller {
|
|
|
report.setConfirmDatetime(parseStringToDate(record.getStr("REPORTDATE")));
|
|
|
report.save();
|
|
|
WeixinService wService = ServiceFactory.getService(WeixinService.class);
|
|
|
- wService.requestWeixinQrcode(report.getId());
|
|
|
+ ssString = wService.requestWeixinQrcode(report.getId());
|
|
|
PatientInfos patientInfos = PatientInfos.dao.use("zskk").findById(exams2.getPatientId());
|
|
|
patientInfos.setName(record.getStr("PATIENTNAME"));
|
|
|
patientInfos.setPhone(record.getStr("PHONE")==null?"":record.getStr("PHONE"));
|
|
@@ -98,7 +97,7 @@ public class ViewController extends Controller {
|
|
|
// continue;
|
|
|
}
|
|
|
}
|
|
|
- this.renderJson(examsd);
|
|
|
+ this.renderText(ssString);
|
|
|
} catch (Exception e) {
|
|
|
// TODO: handle exception
|
|
|
this.renderText(e.toString());
|