Browse Source

增加续方挂号号为空判断

wujunjie 7 years ago
parent
commit
a0549ca4f9

File diff suppressed because it is too large
+ 113 - 187
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/prescription/PatientPrescriptionPayService.java


+ 2 - 0
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/web/patient/prescription/PatientPrescriptionPayController.java

@ -84,6 +84,8 @@ public class PatientPrescriptionPayController extends WeixinBaseController {
            Map result = payService.charge(type, addressJson, orgCode, prescriptionCode, totalAmount, patient, accessToken, returnUrl);
            if ("-1".equals(result.get("status").toString())) {
                return error(-1, "续方居民信息与微信支付身份信息不一致!");
            } else if ("-2".equals(result.get("status").toString())) {
                return error(-1, "续方居民信息挂号号不存在!");
            } else {
                return write(200, "支付成功!", "data", result);
            }