소스 검색

增加续方处方号为空判断

wujunjie 7 년 전
부모
커밋
f85216c1d9

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 3 - 2
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/prescription/PatientPrescriptionPayService.java


+ 5 - 3
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/web/patient/prescription/PatientPrescriptionPayController.java

@ -85,7 +85,7 @@ public class PatientPrescriptionPayController extends WeixinBaseController {
            if ("-1".equals(result.get("status").toString())) {
                return error(-1, "续方居民信息与微信支付身份信息不一致!");
            } else if ("-2".equals(result.get("status").toString())) {
                return error(-1, "续方居民信息挂号号不存在!");
                return error(-1, "续方居民信息挂号号或处方号不存在!");
            } else {
                return write(200, "支付成功!", "data", result);
            }
@ -152,9 +152,11 @@ public class PatientPrescriptionPayController extends WeixinBaseController {
            @ApiParam(name = "cardNo", value = "社保卡号", defaultValue = "D21085562")
            @RequestParam(value = "cardNo", required = true) String cardNo,
            @ApiParam(name = "visitNo", value = "挂号号", defaultValue = "3277865")
            @RequestParam(value = "visitNo", required = true) String visitNo) {
            @RequestParam(value = "visitNo", required = true) String visitNo,
            @ApiParam(name = "recipeNo", value = "基卫处方号", defaultValue = "3277865")
            @RequestParam(value = "recipeNo", required = true) String recipeNo){
        try {
            com.alibaba.fastjson.JSONObject jsonParams = prescriptionService.getPayInfo(cardNo, visitNo);
            com.alibaba.fastjson.JSONObject jsonParams = prescriptionService.getPayInfo(cardNo, visitNo,recipeNo);
            return write(200, "获取成功!", "data", jsonParams);
        } catch (Exception e) {
            return error(-1, "获取失败!");