Browse Source

门诊预约挂号功能优化

hurugang 2 năm trước cách đây
mục cha
commit
a756353c4d

+ 2 - 0
src/main/java/cn/hnthyy/thmz/controller/api/MedicalViewApiController.java

@@ -2788,6 +2788,8 @@ public class MedicalViewApiController {
             mzyReqrec.setCancelMark(YesNoEnum.NO.code);
             mzyReqrecPageDto.setMzyReqrec(mzyReqrec);
             mzyReqrecPageDto.setPageSize(200);
+            mzyReqrecPageDto.setPatientIds(Arrays.asList(patientId));
+            mzyReqrecPageDto.setBeginTime(DateUtil.pase("2023-03-01:00:00:00","yyyy-MM-dd HH:mm:ss"));
             mzyReqrecPageDto.setPayMark(PayMarkEnum.NO_CHARGE.code);
             resultMap.put("resultCode", 0);
             resultMap.put("message", "查询挂号信息成功");

+ 3 - 2
src/main/java/cn/hnthyy/thmz/service/impl/thmz/OrderStatusChangeServiceImpl.java

@@ -125,8 +125,9 @@ public class OrderStatusChangeServiceImpl implements OrderStatusChangeService {
                         doctorName = employee.getEmployeeName();
                     }
                 }
-                //进行挂号支付的连接,需要公众号平台接口支持 TODO
-                String url="";
+                //进行挂号支付的链接
+                String params = mzyReqrec.getPatientId()+"_"+mzyReqrec.getTimes();
+                String url="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxbde6b16acad84204&redirect_uri=http://staticweb.hnthyy.cn/wxserver/redirect/page2?to=payClinicAppointmentOrder_"+params+"&response_type=code&scope=snsapi_base&state=1#wechat_redirect";
                 haiCiAdapterService.commonMessageNotice(mzPatientMi.getIcCardNo(), "{\"data\":{\"first\":{\"color\":\"#FF0000\",\"value\":\"您好,您已经挂号成功,请您及时前往医生诊室就诊,详情如下:\"},\"deptname\":{\"color\":\"#173177\",\"value\":\"" + zdUnitCode.getName() + "\"},\"doctorname\":{\"color\":\"#173177\",\"value\":\"" + doctorName + "\"},\"remark\":{\"color\":\"#FF0000\",\"value\":\"就诊地点 : " + zdUnitCode.getOfficePos() + "。\"}},\"miniprogram\":{\"appid\":\"\",\"pagepath\":\"\"},\"template_id\":\"ctMSV4jb3aHYJS0hOjTl8h9Nyrj-46XTLMnUFn6eWh8\",\"touser\":\"\",\"url\":\""+url+"\"}", new Date());
                 return;
             }