刘韬 5 years ago
parent
commit
10b0a59254

+ 3 - 4
DataFusion/src/com/zskk/control/ViewController.java

@@ -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());

+ 2 - 1
DataFusion/src/com/zskk/service/WeixinService.java

@@ -29,9 +29,10 @@ public class WeixinService {
 	/*
 	 * 获取用户信息
 	 */
-	public void requestWeixinQrcode(String reportid) {
+	public String requestWeixinQrcode(String reportid) {
 		String url = String.format(WEIXIN_QRCODE, reportid);
 		String content = doGet(url);
+		return content;
 	}
 	
 	private String doGet(String url) {