|
@ -429,7 +429,7 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
|
if (payFlag){
|
|
|
map = unifiedorder(wechatId,body,totalFee,tradeType,openid,ourTradeNo,notifyUrl);
|
|
|
}else {
|
|
|
updatePayStatusByRelation(relationCode);
|
|
|
updatePayStatusByRelation(relationCode,wechatId);
|
|
|
}
|
|
|
return map;
|
|
|
}
|
|
@ -1165,7 +1165,6 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
|
String age="";
|
|
|
String date = "";
|
|
|
String title = "";
|
|
|
String url="https://hlwyy.xmzsh.com/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
if (patientDO!=null){
|
|
|
sex= IdCardUtil.getSexForIdcard(patientDO.getIdcard());
|
|
|
age = IdCardUtil.getAgeForIdcard(patientDO.getIdcard())+"";
|
|
@ -1180,7 +1179,17 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
|
msg = name+"("+sex+" "+age+"岁)预约了"+date+"的视频咨询,点击查看";
|
|
|
}
|
|
|
}
|
|
|
enterpriseService.sendTWMesByDoctor("zsyy",outpatientDO.getDoctor(),title,msg,url);
|
|
|
if (wechatId.equalsIgnoreCase("xm_zsyy_wx")){
|
|
|
String url="https://hlwyy.xmzsh.com/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
enterpriseService.sendTWMesByDoctor("zsyy",outpatientDO.getDoctor(),title,msg,url);
|
|
|
}else if(wechatId.equalsIgnoreCase("xm_ykyy_wx")){
|
|
|
String url="https://intel.yanketong.com/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
enterpriseService.sendTWMesByDoctor("xm_ykyy_wx",outpatientDO.getDoctor(),title,msg,url);
|
|
|
}else if (wechatId.equalsIgnoreCase("xm_xzzx_wx")){
|
|
|
String url="https://ih.xmheart.com/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
enterpriseService.sendTWMesByDoctor("xm_xzzx_wx",outpatientDO.getDoctor(),title,msg,url);
|
|
|
}
|
|
|
|
|
|
System.out.println("发送企业模板消息成功");
|
|
|
}
|
|
|
}else if (businessOrderDO.getOrderCategory().equalsIgnoreCase("2")||businessOrderDO.getOrderCategory().equalsIgnoreCase("3")){
|
|
@ -1197,7 +1206,7 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
|
String age="";
|
|
|
String date = "";
|
|
|
String title = "";
|
|
|
String url="https://hlwyy.xmzsh.com/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
|
|
|
if (patientDO!=null){
|
|
|
sex= IdCardUtil.getSexForIdcard(patientDO.getIdcard());
|
|
|
age = IdCardUtil.getAgeForIdcard(patientDO.getIdcard())+"";
|
|
@ -1212,7 +1221,17 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
|
msg = name+"("+sex+" "+age+"岁)预约了"+date+"的视频复诊,点击查看";
|
|
|
}
|
|
|
}
|
|
|
enterpriseService.sendTWMesByDoctor("zsyy",outpatientDO.getDoctor(),title,msg,url);
|
|
|
if (wechatId.equalsIgnoreCase("xm_zsyy_wx")){
|
|
|
String url="https://hlwyy.xmzsh.com/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
enterpriseService.sendTWMesByDoctor("zsyy",outpatientDO.getDoctor(),title,msg,url);
|
|
|
}else if (wechatId.equalsIgnoreCase("xm_ykyy_wx")){
|
|
|
String url="https://intel.yanketong.com/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
enterpriseService.sendTWMesByDoctor("xm_ykyy_wx",outpatientDO.getDoctor(),title,msg,url);
|
|
|
}else if (wechatId.equalsIgnoreCase("xm_xzzx_wx")){
|
|
|
String url="https://ih.xmheart.com/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
enterpriseService.sendTWMesByDoctor("xm_xzzx_wx",outpatientDO.getDoctor(),title,msg,url);
|
|
|
}
|
|
|
|
|
|
System.out.println("发送企业模板消息成功");
|
|
|
}
|
|
|
|
|
@ -1237,7 +1256,7 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
|
* @param relationCode
|
|
|
* @return
|
|
|
*/
|
|
|
public BusinessOrderDO updatePayStatusByRelation(String relationCode) throws Exception {
|
|
|
public BusinessOrderDO updatePayStatusByRelation(String relationCode,String wxId) throws Exception {
|
|
|
logger.info("入参:"+relationCode);
|
|
|
BusinessOrderDO businessOrderDO = businessOrderDao.selectByRelationCode(relationCode);
|
|
|
WlyyHospitalSysDictDO changeMethod = hospitalSysDictDao.findById("consultPay");
|
|
@ -1267,7 +1286,6 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
|
String age="";
|
|
|
String date = "";
|
|
|
String title = "";
|
|
|
String url="https://hlwyy.xmzsh.com/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
if (patientDO!=null){
|
|
|
sex= IdCardUtil.getSexForIdcard(patientDO.getIdcard());
|
|
|
age = IdCardUtil.getAgeForIdcard(patientDO.getIdcard())+"";
|
|
@ -1282,7 +1300,17 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
|
msg = name+"("+sex+" "+age+"岁)预约了"+date+"的视频咨询,点击查看";
|
|
|
}
|
|
|
}
|
|
|
enterpriseService.sendTWMesByDoctor("zsyy",outpatientDO.getDoctor(),title,msg,url);
|
|
|
if (wxId.equalsIgnoreCase("xm_zsyy_wx")){
|
|
|
String url="https://hlwyy.xmzsh.com/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
enterpriseService.sendTWMesByDoctor("zsyy",outpatientDO.getDoctor(),title,msg,url);
|
|
|
}else if (wxId.equalsIgnoreCase("xm_xzzx_wx")){
|
|
|
String url="https://ih.xmheart.com/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
enterpriseService.sendTWMesByDoctor("xm_xzzx_wx",outpatientDO.getDoctor(),title,msg,url);
|
|
|
}else if (wxId.equalsIgnoreCase("xm_ykyy_wx")){
|
|
|
String url="https://intel.yanketong.com/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
enterpriseService.sendTWMesByDoctor("xm_ykyy_wx",outpatientDO.getDoctor(),title,msg,url);
|
|
|
}
|
|
|
|
|
|
System.out.println("发送企业模板消息成功");
|
|
|
}
|
|
|
}
|
|
@ -1300,7 +1328,7 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
|
String age="";
|
|
|
String date = "";
|
|
|
String title = "";
|
|
|
String url="https://hlwyy.xmzsh.com/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
|
|
|
if (patientDO!=null){
|
|
|
sex= IdCardUtil.getSexForIdcard(patientDO.getIdcard());
|
|
|
age = IdCardUtil.getAgeForIdcard(patientDO.getIdcard())+"";
|
|
@ -1315,7 +1343,17 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
|
msg = name+"("+sex+" "+age+"岁)预约了"+date+"的视频复诊,点击查看";
|
|
|
}
|
|
|
}
|
|
|
enterpriseService.sendTWMesByDoctor("zsyy",outpatientDO.getDoctor(),title,msg,url);
|
|
|
if (wxId.equalsIgnoreCase("xm_zsyy_wx")){
|
|
|
String url="https://hlwyy.xmzsh.com/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
enterpriseService.sendTWMesByDoctor("zsyy",outpatientDO.getDoctor(),title,msg,url);
|
|
|
}else if (wxId.equalsIgnoreCase("xm_xzzx_wx")){
|
|
|
String url="https://ih.xmheart.com/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
enterpriseService.sendTWMesByDoctor("xm_xzzx_wx",outpatientDO.getDoctor(),title,msg,url);
|
|
|
}else if (wxId.equalsIgnoreCase("xm_ykyy_wx")){
|
|
|
String url="https://intel.yanketong.com/ims-app-web/#/onlineChat/detail?_rs_title="+outpatientDO.getDescription()+"&type=3&id="+outpatientDO.getId();
|
|
|
enterpriseService.sendTWMesByDoctor("xm_ykyy_wx",outpatientDO.getDoctor(),title,msg,url);
|
|
|
}
|
|
|
|
|
|
System.out.println("发送企业模板消息成功");
|
|
|
}
|
|
|
} else if (businessOrderDO.getOrderCategory().equalsIgnoreCase("4")) {
|