Przeglądaj źródła

预缴金 充值新增支付地址.socket推送同时返回支付地址

bing 2 lat temu
rodzic
commit
f19dd59acb

+ 4 - 0
common/common-entity/sql记录

@ -1676,3 +1676,7 @@ alter table t_mediicine_order add column reviewer_state tinyint(2) default null
alter table t_mediicine_order add column reviewer_doctor_name varchar(255) default null comment '审方医生';
 alter table t_mediicine_order add column reviewer_time varchar(255) default null comment '审方时间';
 -- 2022-11-11
 alter table base_ylz_medical_recharge add column pay_url varchar(255) default null comment '支付地址';

+ 9 - 0
common/common-entity/src/main/java/com/yihu/jw/entity/hospital/healthCare/YlzMedicalRecharge.java

@ -24,6 +24,15 @@ public class YlzMedicalRecharge extends UuidIdentityEntity {
    private String ssc;
    private String depositType; //支付方式 支付方式ALI_QR 支付宝二维码支付;WX_QR微信二维码
    private Date createTime;
    private String payUrl; //支付地址
    public String getPayUrl() {
        return payUrl;
    }
    public void setPayUrl(String payUrl) {
        this.payUrl = payUrl;
    }
    public String getOutChargeNo() {
        return outChargeNo;

+ 10 - 6
svr/svr-base/src/main/java/com/yihu/jw/base/service/a3service/YlzService.java

@ -128,7 +128,7 @@ public class YlzService {
        if (null!=dmHospitalDO){
            ylzMedicalRecharge.setOrgName(dmHospitalDO.getName());
        }
        ylzMedicalRechargeDao.save(ylzMedicalRecharge);
        ylzMedicalRecharge = ylzMedicalRechargeDao.save(ylzMedicalRecharge);
        WlyyHttpLogDO wlyyHttpLogDO = new WlyyHttpLogDO();
        wlyyHttpLogDO.setCode("hlwyyRecharge");
@ -141,7 +141,10 @@ public class YlzService {
        if (re.getString("status").equalsIgnoreCase("200")) {//i健康返回值
            JSONObject responseData = re.getJSONObject("data");
            if (responseData.getBoolean("isSuccess")){
                return responseData.getString("payUrl");
                String payUrl = responseData.getString("payUrl");
                ylzMedicalRecharge.setPayUrl(payUrl);
                ylzMedicalRechargeDao.save(ylzMedicalRecharge);
                return payUrl;
            }else {
                throw  new Exception(responseData.getString("error"));
            }
@ -309,14 +312,15 @@ public class YlzService {
                            /**
                             * 支付状态确认 通知药柜结算状态是什么情况
                             */
                            JSONObject chargeNotice = new JSONObject();
                            chargeNotice.put("result",result);
                            chargeNotice.put("resultName",resultName);
                            medicineServive.sendSocketMessage(ylzMedicalRecharge.getEquNum()+"_T","medical_recharge", URLEncoder.encode(chargeNotice.toJSONString(),"UTF-8"));
                            ylzMedicalRecharge.setChargeResult(result);
                            ylzMedicalRecharge.setChargeResultName(resultName);
                            ylzMedicalRechargeDao.save(ylzMedicalRecharge);
                            if ("succ".equals(result)){//交易成功 (微信/支付宝成功,HIS成功)
                                JSONObject chargeNotice = new JSONObject();
                                chargeNotice.put("result",result);
                                chargeNotice.put("resultName",resultName);
                                chargeNotice.put("payUrl",ylzMedicalRecharge.getPayUrl());
                                medicineServive.sendSocketMessage(ylzMedicalRecharge.getEquNum()+"_T","medical_recharge", URLEncoder.encode(chargeNotice.toJSONString(),"UTF-8"));
                                String recipeNoStr = ylzMedicalRecharge.getValue();
                                if (StringUtils.isNoneBlank(recipeNoStr)){//关联处方号
                                    String[] recipeNos = recipeNoStr.split(",");