|  | @ -381,6 +381,25 @@ public class BookingController extends WeixinBaseController {
 | 
												
													
														
															|  | 			PatientReservation obj = patientReservationService.findByCode(orderCode);
 |  | 			PatientReservation obj = patientReservationService.findByCode(orderCode);
 | 
												
													
														
															|  | 			if(obj!=null)
 |  | 			if(obj!=null)
 | 
												
													
														
															|  | 			{
 |  | 			{
 | 
												
													
														
															|  | 
 |  | 				Patient p = patientService.findByCode(obj.getPatient());
 | 
												
													
														
															|  | 
 |  | 				String msg = "您成功预约了 " + obj.getOrgName() + " " + obj.getDoctorName() + " " + obj.getStartTime() + " 的号源!";
 | 
												
													
														
															|  | 
 |  | 				if (StringUtils.isNotEmpty(p.getOpenid())) {
 | 
												
													
														
															|  | 
 |  | 					// 推送消息给微信端
 | 
												
													
														
															|  | 
 |  | 					JSONObject json = new JSONObject();
 | 
												
													
														
															|  | 
 |  | 					json.put("first", "预约挂号提醒");
 | 
												
													
														
															|  | 
 |  | 					json.put("toUser", p.getCode());
 | 
												
													
														
															|  | 
 |  | 					json.put("id",obj.getId());
 | 
												
													
														
															|  | 
 |  | 					json.put("date", obj.getStartTime());
 | 
												
													
														
															|  | 
 |  | 					json.put("orgName", obj.getOrgName());
 | 
												
													
														
															|  | 
 |  | 					json.put("doctorName", obj.getDoctorName());
 | 
												
													
														
															|  | 
 |  | 					json.put("deptName", obj.getDeptName());
 | 
												
													
														
															|  | 
 |  | 					json.put("remark", msg);
 | 
												
													
														
															|  | 
 |  | 					PushMsgTask.getInstance().putWxMsg(getAccessToken(), 6, p.getOpenid(), p.getName(), json);
 | 
												
													
														
															|  | 
 |  | 				}
 | 
												
													
														
															|  | 
 |  | 				//发送短信小时
 | 
												
													
														
															|  | 
 |  | 				// 调用总部发送信息的接口
 | 
												
													
														
															|  | 
 |  | 				String result = HttpClientUtil.post(SystemConf.getInstance().getSmsUrl(), buildSmsParams(msg, p.getMobile()), "GBK");
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 				return write(200, "创建挂号单成功!");
 |  | 				return write(200, "创建挂号单成功!");
 | 
												
													
														
															|  | 			}
 |  | 			}
 | 
												
													
														
															|  | 			else{
 |  | 			else{
 |