|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yihu.jw.entity.base.patient.BasePatientDO;
|
|
|
import com.yihu.jw.patient.dao.BasePatientDao;
|
|
|
import com.yihu.jw.util.http.HttpClientUtil;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
@ -18,14 +19,15 @@ public class PayInfoNoticeService {
|
|
|
private BasePatientDao patientDao;
|
|
|
|
|
|
|
|
|
public String pushPrescriptionPay(String patient,String doctorName,String orderNo,String outpatientId,String prescriptionId,String total){
|
|
|
public String pushPrescriptionPay(String patient,String doctorName,String orderNo,String outpatientId,String prescriptionId,String total,String title,String url){
|
|
|
BasePatientDO patientDO = patientDao.findById(patient);
|
|
|
if (patientDO!=null){
|
|
|
String userName = patientDO.getName();
|
|
|
String idcard = patientDO.getIdcard();
|
|
|
String phone = patientDO.getMobile();
|
|
|
String title="您在厦门大学附属中山医院有一笔诊察/处方费用以支付完成!";
|
|
|
String url = "https://hlwyy.xmzsh.com/ims-wx/index.html#/returnVisit/prescriptionDetail?outpatientId="+outpatientId+"&id="+prescriptionId;
|
|
|
if (!StringUtils.isNotBlank(url)){
|
|
|
url = "https://hlwyy.xmzsh.com/ims-wx/index.html#/returnVisit/prescriptionDetail?outpatientId="+outpatientId+"&id="+prescriptionId;
|
|
|
}
|
|
|
String remark = "结算方式:微信结算" +
|
|
|
"点击查看取药\n物流信息";
|
|
|
return paySuccessNotice(userName,idcard,phone,title,url,doctorName,total,"0",total,orderNo,remark);
|