فهرست منبع

医保签约号

wujunjie 7 سال پیش
والد
کامیت
c931c1a1d1

+ 19 - 0
patient-co/patient-co-wlyy-job/src/main/java/com/yihu/wlyy/service/app/prescription/PatientPrescriptionPayService.java

@ -4,11 +4,14 @@ import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.yihu.wlyy.entity.charge.WlyyCharge;
import com.yihu.wlyy.entity.message.Message;
import com.yihu.wlyy.entity.message.Message;
import com.yihu.wlyy.entity.organization.Hospital;
import com.yihu.wlyy.entity.organization.Hospital;
import com.yihu.wlyy.entity.organization.HospitalMapping;
import com.yihu.wlyy.entity.organization.HospitalMapping;
import com.yihu.wlyy.entity.patient.Patient;
import com.yihu.wlyy.entity.patient.Patient;
import com.yihu.wlyy.entity.patient.SignFamily;
import com.yihu.wlyy.entity.patient.prescription.*;
import com.yihu.wlyy.entity.patient.prescription.*;
import com.yihu.wlyy.entity.security.AccessToken;
import com.yihu.wlyy.entity.ylz.PayConfigura;
import com.yihu.wlyy.entity.ylz.PayConfigura;
import com.yihu.wlyy.entity.zydict.ZyPushLog;
import com.yihu.wlyy.entity.zydict.ZyPushLog;
import com.yihu.wlyy.repository.charge.ChargeDao;
import com.yihu.wlyy.repository.charge.ChargeDao;
@ -26,11 +29,13 @@ import com.yihu.wlyy.repository.ylz.PayConfiguraDao;
import com.yihu.wlyy.service.BaseService;
import com.yihu.wlyy.service.BaseService;
import com.yihu.wlyy.service.common.account.AccessTokenService;
import com.yihu.wlyy.util.SystemConf;
import com.yihu.wlyy.util.SystemConf;
import com.ylzinfo.onepay.sdk.OnepayDefaultClient;
import com.ylzinfo.onepay.sdk.OnepayDefaultClient;
import com.ylzinfo.onepay.sdk.domain.RequestParams;
import com.ylzinfo.onepay.sdk.domain.RequestParams;
import com.ylzinfo.onepay.sdk.domain.ResponseParams;
import com.ylzinfo.onepay.sdk.domain.ResponseParams;
import com.ylzinfo.onepay.sdk.utils.DateUtil;
import com.ylzinfo.onepay.sdk.utils.DateUtil;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Autowired;
@ -65,6 +70,10 @@ public class PatientPrescriptionPayService extends BaseService {
    private String serverUrl;
    private String serverUrl;
    @Value("${wechat.accId}")
    @Value("${wechat.accId}")
    private String accId;
    private String accId;
    @Value("${wechat.appId}")
    private String appId;
    @Value("${wechat.appSecret}")
    private String appSecret;
    //    Java配置文件 后续删除
    //    Java配置文件 后续删除
    private String signType = "MD5";
    private String signType = "MD5";
    private String encryptType = "AES";
    private String encryptType = "AES";
@ -78,6 +87,16 @@ public class PatientPrescriptionPayService extends BaseService {
    private HospitalMappingDao mappingDao;
    private HospitalMappingDao mappingDao;
    @Autowired
    @Autowired
    private PrescriptionDao prescriptionDao;
    private PrescriptionDao prescriptionDao;
    @Autowired
    private ChargeDao chargeDao;
    @Autowired
    private SignFamilyDao signFamilyDao;
    @Autowired
    private HospitalMappingDao hospitalMappingDao;
    @Autowired
    private AccessTokenService accessTokenService;
    @Autowired
    private com.yihu.wlyy.util.HttpUtil HttpUtil;
    /**
    /**
     * 家庭医生签约支付查询
     * 家庭医生签约支付查询

+ 75 - 8
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/prescription/PatientPrescriptionPayService.java

@ -289,7 +289,6 @@ public class PatientPrescriptionPayService extends BaseService {
            String result = chargeQuery(outChargeNo, accessToken);//业务出参
            String result = chargeQuery(outChargeNo, accessToken);//业务出参
            org.json.JSONObject param = new org.json.JSONObject(result);
            org.json.JSONObject param = new org.json.JSONObject(result);
            String requestParam = param.getString("responseContent");
//            构建请求结构体
//            构建请求结构体
            msbody.put("appId", appId);
            msbody.put("appId", appId);
            msbody.put("billNo", billNo);
            msbody.put("billNo", billNo);
@ -310,9 +309,12 @@ public class PatientPrescriptionPayService extends BaseService {
            msbody.put("tradeStatus", tradeStatus);
            msbody.put("tradeStatus", tradeStatus);
            msbody.put("userId", userId);
            msbody.put("userId", userId);
            msbody.put("userName", userName);
            msbody.put("userName", userName);
            org.json.JSONObject responseContents = new org.json.JSONObject(requestParam);//医保结构体
            msbody.put("responseContent", responseContents);
            org.json.JSONObject responseContents = null;
            if (param.has("responseContent")) {
                String requestParam = param.getString("responseContent");
                responseContents = new org.json.JSONObject(requestParam);//医保结构体
                msbody.put("responseContent", responseContents);
            }
            PrescriptionPay prescriptionPay = payDao.findByCode(outChargeNo);
            PrescriptionPay prescriptionPay = payDao.findByCode(outChargeNo);
            if (responseContents != null) {
            if (responseContents != null) {
@ -590,9 +592,11 @@ public class PatientPrescriptionPayService extends BaseService {
                        billNo = requestParam.getString("billNo");//待结算费用单据号
                        billNo = requestParam.getString("billNo");//待结算费用单据号
                    }
                    }
                    logger.debug(" ====================================>     responseContent");
                    logger.debug(" ====================================>     responseContent");
//                    org.json.JSONObject responseContents = requestParam.getJSONObject("responseContent");//医保结构体
                    String contents = requestParam.getString("responseContent");//医保结构体
                    JSONObject responseContents = JSONObject.parseObject(contents);
                    JSONObject responseContents = null;
                    if (requestParam.has("responseContent")) {
                        String contents = requestParam.getString("responseContent");//医保结构体
                        responseContents = JSONObject.parseObject(contents);
                    }
                    String miSettleNo = "";
                    String miSettleNo = "";
                    String miRegisterNo = "";
                    String miRegisterNo = "";
                    String miCollectDate = "";
                    String miCollectDate = "";
@ -1236,7 +1240,7 @@ public class PatientPrescriptionPayService extends BaseService {
                    String miCollectDate = null;//收费日期
                    String miCollectDate = null;//收费日期
                    String miCollectTime = null;//收费时间
                    String miCollectTime = null;//收费时间
                    String miCollectorName = null;//收费人姓名
                    String miCollectorName = null;//收费人姓名
                    String miTotalFee ="0";//本次报销总额
                    String miTotalFee = "0";//本次报销总额
                    String selfPay = "0";//个人现金支付
                    String selfPay = "0";//个人现金支付
                    String accountPay = "0";//个人账户支付
                    String accountPay = "0";//个人账户支付
                    String heathPay = "0";//健康账户支付
                    String heathPay = "0";//健康账户支付
@ -1399,7 +1403,70 @@ public class PatientPrescriptionPayService extends BaseService {
        return result;
        return result;
    }
    }
    
    public String getSignFamilyPayResult(String outChargeNo, String accessToken, String appId, String appSecret) throws Exception {
        PayConfigura config = configuraDao.findWorkConfigura();
        int flag = 0;
        Boolean isSuccess = true;
        String msgBody = "";
        String response = "";
        String error = "";
        String result = null;
//      ***************************  测通流程 ***************************************
        OnepayDefaultClient onepayClient = new OnepayDefaultClient(config.getOnepayApi(), appId, appSecret, signType, encryptType);
    
        try {
            RequestParams requestParams = new RequestParams();
            requestParams.setAppId(appId);
            requestParams.setTimestamp(DateUtil.getCurrentDateTime());
            requestParams.setSignType(signType);
            requestParams.setEncryptType(encryptType);
            requestParams.setTransType(config.getChargeQueryType());
        
            //业务参数
            JSONObject params = new JSONObject();
            params.put("outChargeNo", outChargeNo);  //接入应用结算业务流水号
            params.put("wxToken", accessToken);
        
            requestParams.setParam(params);
            msgBody = JSON.toJSONString(requestParams);
//              ***************************  测通流程 ***************************************
            //执行支付 返回原生返回值
            ResponseParams<JSONObject> res = onepayClient.execute(requestParams);
            response = JSON.toJSONString(res);
        
            if (OnepayDefaultClient.isSuccessful(res)) {
                //业务处理*******************
//                只返回业务出参
                flag = 1;
                result = JSON.toJSONString(res.getParam());
            
                logger.info("请求成功,返回参数: " + result);
            } else {
                isSuccess = false;
                error = "请求失败,返回结果:" + res.getRespCode() + "," + res.getRespMsg();
            }
        } catch (Exception ex) {
            isSuccess = false;
            StringWriter sw = new StringWriter();
            PrintWriter pw = new PrintWriter(sw);
            ex.printStackTrace(pw);
            error = sw.toString();
        }
    
        //type = 3易联众接口保存http日志
        logger.info("api - " + config.getChargeQueryType());
        logger.info("request - " + msgBody);
        logger.info("responses - " + response);
        logger.info("error - " + error);
        if (!isSuccess) {
            throw new Exception(error);
        }
    
        return result;
    }
}
}

+ 72 - 68
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/weixin/wxpay/service/OnePayService.java

@ -438,76 +438,80 @@ public class OnePayService {
//                String signType = request.getString("signType");
//                String signType = request.getString("signType");
//                String timestamp = request.getString("timestamp");
//                String timestamp = request.getString("timestamp");
                JSONObject responseContents = request.getJSONObject("responseContent");//医保结构体
                WlyyCharge chargePay = chargeDao.findByCode(outChargeNo);
                WlyyCharge chargePay = chargeDao.findByCode(outChargeNo);
                if (responseContents != null) {
                    String miRegisterNo = null;//医保挂号
                    String miCollectDate = null;//收费日期
                    String miCollectTime = null;//收费时间
                    String miSettleNo = null;//医保收费单据号 (医保签约号)
                    String miCollectStatus = null;//扣费状态
                    String miRegisterStatus = null;//登记状态
                    String cadresPay = "0";//公务员补助
                    String miTotalFee = "0";//本次报销总额
                    String healthCarePay = "0";//保健基金支付
                    String heathPay = "0";//健康账户支付
                    String accountPay = "0";//个人账户支付
                    String selfPay = "0";//个人现金支付
                    String civilPay = "0";//民政补助金额
                    if (responseContents.containsKey(miRegisterNo)) {
                        miRegisterNo = responseContents.getString("miRegisterNo");
                    }
                    if (responseContents.containsKey(miCollectDate)) {
                        miCollectDate = responseContents.getString("miCollectDate");
                    }
                    if (responseContents.containsKey(miCollectTime)) {
                        miCollectTime = responseContents.getString("miCollectTime");
                    }
                    if (responseContents.containsKey(miSettleNo)) {
                        miSettleNo = responseContents.getString("miSettleNo");
                    }
                    if (responseContents.containsKey(miCollectStatus)) {
                        miCollectStatus = responseContents.getString("miCollectStatus");
                    }
                    if (responseContents.containsKey(miRegisterStatus)) {
                        miRegisterStatus = responseContents.getString("miRegisterStatus");
                    }
                    if (responseContents.containsKey(cadresPay)) {
                        cadresPay = responseContents.getString("cadresPay");
                    }
                    if (responseContents.containsKey(miTotalFee)) {
                        miTotalFee = responseContents.getString("miTotalFee");
                    }
                    if (responseContents.containsKey(healthCarePay)) {
                        healthCarePay = responseContents.getString("healthCarePay");
                    }
                    if (responseContents.containsKey(heathPay)) {
                        heathPay = responseContents.getString("heathPay");
                    }
                    if (responseContents.containsKey(accountPay)) {
                        accountPay = responseContents.getString("accountPay");
                    }
                    if (responseContents.containsKey(selfPay)) {
                        selfPay = responseContents.getString("selfPay");
                    }
                    if (responseContents.containsKey(civilPay)) {
                        civilPay = responseContents.getString("civilPay");
                    }
                if (request.containsKey("responseContent")){
                    JSONObject responseContents = request.getJSONObject("responseContent");//医保结构体
                    if (responseContents != null) {
                        String miRegisterNo = null;//医保挂号
                        String miCollectDate = null;//收费日期
                        String miCollectTime = null;//收费时间
                        String miSettleNo = null;//医保收费单据号 (医保签约号)
                        String miCollectStatus = null;//扣费状态
                        String miRegisterStatus = null;//登记状态
                        String cadresPay = "0";//公务员补助
                        String miTotalFee = "0";//本次报销总额
                        String healthCarePay = "0";//保健基金支付
                        String heathPay = "0";//健康账户支付
                        String accountPay = "0";//个人账户支付
                        String selfPay = "0";//个人现金支付
                        String civilPay = "0";//民政补助金额
                        if (responseContents.containsKey(miRegisterNo)) {
                            miRegisterNo = responseContents.getString("miRegisterNo");
                        }
                        if (responseContents.containsKey(miCollectDate)) {
                            miCollectDate = responseContents.getString("miCollectDate");
                        }
                        if (responseContents.containsKey(miCollectTime)) {
                            miCollectTime = responseContents.getString("miCollectTime");
                        }
                        if (responseContents.containsKey(miSettleNo)) {
                            miSettleNo = responseContents.getString("miSettleNo");
                        }
                        if (responseContents.containsKey(miCollectStatus)) {
                            miCollectStatus = responseContents.getString("miCollectStatus");
                        }
                        if (responseContents.containsKey(miRegisterStatus)) {
                            miRegisterStatus = responseContents.getString("miRegisterStatus");
                        }
                        if (responseContents.containsKey(cadresPay)) {
                            cadresPay = responseContents.getString("cadresPay");
                        }
                        if (responseContents.containsKey(miTotalFee)) {
                            miTotalFee = responseContents.getString("miTotalFee");
                        }
                        if (responseContents.containsKey(healthCarePay)) {
                            healthCarePay = responseContents.getString("healthCarePay");
                        }
                        if (responseContents.containsKey(heathPay)) {
                            heathPay = responseContents.getString("heathPay");
                        }
                        if (responseContents.containsKey(accountPay)) {
                            accountPay = responseContents.getString("accountPay");
                        }
                        if (responseContents.containsKey(selfPay)) {
                            selfPay = responseContents.getString("selfPay");
                        }
                        if (responseContents.containsKey(civilPay)) {
                            civilPay = responseContents.getString("civilPay");
                        }
                        chargePay.setMiRegisterNo(miRegisterNo);//医保挂号
                        chargePay.setMiCollectDate(miCollectDate);
                        chargePay.setMiCollectTime(miCollectTime);
                        chargePay.setMiSettleNo(miSettleNo);
                        chargePay.setMiCollectStatus(miCollectStatus);
                        chargePay.setMiRegisterStatus(miRegisterStatus);
                        chargePay.setCadresPay(cadresPay);
                        chargePay.setMiTotalFee(miTotalFee);
                        chargePay.setHealthCarePay(healthCarePay);
                        chargePay.setHeathPay(heathPay);
                        chargePay.setAccountPay(accountPay);
                        chargePay.setSelfPay(selfPay);
                        chargePay.setCivilPay(civilPay);
                }
                    chargePay.setMiRegisterNo(miRegisterNo);//医保挂号
                    chargePay.setMiCollectDate(miCollectDate);
                    chargePay.setMiCollectTime(miCollectTime);
                    chargePay.setMiSettleNo(miSettleNo);
                    chargePay.setMiCollectStatus(miCollectStatus);
                    chargePay.setMiRegisterStatus(miRegisterStatus);
                    chargePay.setCadresPay(cadresPay);
                    chargePay.setMiTotalFee(miTotalFee);
                    chargePay.setHealthCarePay(healthCarePay);
                    chargePay.setHeathPay(heathPay);
                    chargePay.setAccountPay(accountPay);
                    chargePay.setSelfPay(selfPay);
                    chargePay.setCivilPay(civilPay);
                }
                }
                if ("0".equals(chargeStatus) || "SUCCESS".equals(chargeStatus)) {
                if ("0".equals(chargeStatus) || "SUCCESS".equals(chargeStatus)) {

+ 120 - 56
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/web/wx/OnePayController.java

@ -27,6 +27,7 @@ import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiParam;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.LoggerFactory;
@ -293,8 +294,6 @@ public class OnePayController extends WeixinBaseController {
            WlyyCharge charge = chargeDao.getUploadStatus(outChargeNo);
            WlyyCharge charge = chargeDao.getUploadStatus(outChargeNo);
            String result = pay.chargeQuery(outChargeNo, getAccessToken());//业务出参
            String result = pay.chargeQuery(outChargeNo, getAccessToken());//业务出参
            JSONObject param = new JSONObject(result);
            JSONObject param = new JSONObject(result);
            String requestParam = param.getString("responseContent");
            JSONObject responseContents = new JSONObject(requestParam);//医保结构体
            charge.setChargeNo(chargeNo);
            charge.setChargeNo(chargeNo);
            charge.setChargeTime(chargeTime);
            charge.setChargeTime(chargeTime);
@ -311,47 +310,73 @@ public class OnePayController extends WeixinBaseController {
            charge.setIdNo(idNo);
            charge.setIdNo(idNo);
            charge.setTradeStatus(chargeStatus);
            charge.setTradeStatus(chargeStatus);
            String miRegisterNo = "";
            String miCollectDate = "";
            String miCollectTime = "";
            String miSettleNo = "";
            String miCollectStatus = "";
            String miRegisterStatus = "";
            String cadresPay = "";
            String miTotalFee = "";
            String healthCarePay = "";
            String heathPay = "";
            String accountPay = "";
            String selfPay = "";
            String civilPay = "";
            if (responseContents != null) {
                miRegisterNo = responseContents.getString("miRegisterNo");//医保签约号
                miCollectDate = responseContents.getString("miCollectDate");//扣费日期
                miCollectTime = responseContents.getString("miCollectTime");//扣费时间
                miSettleNo = responseContents.getString("miSettleNo");//扣费单据号
                miCollectStatus = responseContents.getString("miCollectStatus");//扣费状态
                miRegisterStatus = responseContents.getString("miRegisterStatus");//登记状态
                cadresPay = responseContents.getString("cadresPay");//政府补贴支付
                miTotalFee = responseContents.getString("miTotalFee");//扣费总额
                healthCarePay = responseContents.getString("healthCarePay");//医保统筹支付
                heathPay = responseContents.getString("heathPay");//健康账户支付
                accountPay = responseContents.getString("accountPay");//医保账户支付
                selfPay = responseContents.getString("selfPay");//个人现金支付
                civilPay = responseContents.getString("civilPay");//基本卫生服务支付
                charge.setMiRegisterNo(miRegisterNo);
                charge.setMiCollectDate(miCollectDate);
                charge.setMiCollectTime(miCollectTime);
                charge.setMiSettleNo(miSettleNo);
                charge.setMiCollectStatus(miCollectStatus);
                charge.setMiRegisterStatus(miRegisterStatus);
                charge.setCadresPay(cadresPay);
                charge.setMiTotalFee(miTotalFee);
                charge.setHealthCarePay(healthCarePay);
                charge.setHeathPay(heathPay);
                charge.setAccountPay(accountPay);
                charge.setSelfPay(selfPay);
                charge.setCivilPay(civilPay);
            if (param.has("responseContent") && (param.getJSONObject("responseContent") != null)) {
                String requestParam = param.getString("responseContent");
                JSONObject responseContents = new JSONObject(requestParam);//医保结构体
                String miRegisterNo = "";
                String miCollectDate = "";
                String miCollectTime = "";
                String miSettleNo = "";
                String miCollectStatus = "";
                String miRegisterStatus = "";
                String cadresPay = "";
                String miTotalFee = "";
                String healthCarePay = "";
                String heathPay = "";
                String accountPay = "";
                String selfPay = "";
                String civilPay = "";
                if (responseContents != null) {
                    if (responseContents.has("miRegisterNo")) {
                        miRegisterNo = responseContents.getString("miRegisterNo");//医保签约号
                    }
                    if (responseContents.has("miCollectDate")) {
                        miCollectDate = responseContents.getString("miCollectDate");//扣费日期
                    }
                    if (responseContents.has("miCollectTime")) {
                        miCollectTime = responseContents.getString("miCollectTime");//扣费时间
                    }
                    if (responseContents.has("miSettleNo")) {
                        miSettleNo = responseContents.getString("miSettleNo");//扣费单据号
                    }
                    if (responseContents.has("miCollectStatus")) {
                        miCollectStatus = responseContents.getString("miCollectStatus");//扣费状态
                    }
                    if (responseContents.has("miRegisterStatus")) {
                        miRegisterStatus = responseContents.getString("miRegisterStatus");//登记状态
                    }
                    if (responseContents.has("cadresPay")) {
                        cadresPay = responseContents.getString("cadresPay");//政府补贴支付
                    }
                    if (responseContents.has("miTotalFee")) {
                        miTotalFee = responseContents.getString("miTotalFee");//扣费总额
                    }
                    if (responseContents.has("healthCarePay")) {
                        healthCarePay = responseContents.getString("healthCarePay");//医保统筹支付
                    }
                    if (responseContents.has("accountPay")) {
                        accountPay = responseContents.getString("accountPay");//医保账户支付
                    }
                    if (responseContents.has("selfPay")) {
                        selfPay = responseContents.getString("selfPay");//个人现金支付
                    }
                    if (responseContents.has("civilPay")) {
                        civilPay = responseContents.getString("civilPay");//基本卫生服务支付
                    }
                    charge.setMiRegisterNo(miRegisterNo);
                    charge.setMiCollectDate(miCollectDate);
                    charge.setMiCollectTime(miCollectTime);
                    charge.setMiSettleNo(miSettleNo);
                    charge.setMiCollectStatus(miCollectStatus);
                    charge.setMiRegisterStatus(miRegisterStatus);
                    charge.setCadresPay(cadresPay);
                    charge.setMiTotalFee(miTotalFee);
                    charge.setHealthCarePay(healthCarePay);
                    charge.setHeathPay(heathPay);
                    charge.setAccountPay(accountPay);
                    charge.setSelfPay(selfPay);
                    charge.setCivilPay(civilPay);
                }
            }
            }
//                判断是否需要更新数据 needUpload为0不需要更新
//                判断是否需要更新数据 needUpload为0不需要更新
            LOGGER.info("before  goto " + charge.getNeedUpload() + " == " + outChargeNo);
            LOGGER.info("before  goto " + charge.getNeedUpload() + " == " + outChargeNo);
@ -457,19 +482,58 @@ public class OnePayController extends WeixinBaseController {
                    String miRegisterNo = "";//医保签约号
                    String miRegisterNo = "";//医保签约号
                    if (requestParams.has("responseContent") && (requestParams.getJSONObject("responseContent") != null)) {
                    if (requestParams.has("responseContent") && (requestParams.getJSONObject("responseContent") != null)) {
                        JSONObject responseContents = requestParams.getJSONObject("responseContent");//医保结构体
                        JSONObject responseContents = requestParams.getJSONObject("responseContent");//医保结构体
                        miRegisterNo = responseContents.getString("miRegisterNo");//医保签约号
                        String miCollectDate = responseContents.getString("miCollectDate");//扣费日期
                        String miCollectTime = responseContents.getString("miCollectTime");//扣费时间
                        String miSettleNo = responseContents.getString("miSettleNo");//扣费单据号
                        String miCollectStatus = responseContents.getString("miCollectStatus");//扣费状态
                        String miRegisterStatus = responseContents.getString("miRegisterStatus");//登记状态
                        String cadresPay = responseContents.getString("cadresPay");//政府补贴支付
                        String miTotalFee = responseContents.getString("miTotalFee");//扣费总额
                        String healthCarePay = responseContents.getString("healthCarePay");//医保统筹支付
                        String heathPay = responseContents.getString("heathPay");//健康账户支付
                        String accountPay = responseContents.getString("accountPay");//医保账户支付
                        String selfPay = responseContents.getString("selfPay");//个人现金支付
                        String civilPay = responseContents.getString("civilPay");//基本卫生服务支付
                        String miCollectDate = null;//扣费日期
                        String miCollectTime = null;//扣费时间
                        String miSettleNo = null;//扣费单据号
                        String miCollectStatus = null;//扣费状态
                        String miRegisterStatus = null;//登记状态
                        String cadresPay = "0";//政府补贴支付
                        String miTotalFee = "0";//扣费总额
                        String healthCarePay = "0";//医保统筹支付
                        String heathPay = "0";//健康账户支付
                        String accountPay = "0";//医保账户支付
                        String selfPay = "0";//个人现金支付
                        String civilPay = "0";//基本卫生服务支付
                        if (responseContents.has("miRegisterNo")) {
                            miRegisterNo = responseContents.getString("miRegisterNo");//医保签约号
                        }
                        if (responseContents.has("miCollectDate")) {
                            miCollectDate = responseContents.getString("miCollectDate");
                        }
                        if (responseContents.has("miCollectTime")) {
                            miCollectTime = responseContents.getString("miCollectTime");
                        }
                        if (responseContents.has("miSettleNo")) {
                            miSettleNo = responseContents.getString("miSettleNo");
                        }
                        if (responseContents.has("miCollectStatus")) {
                            miCollectStatus = responseContents.getString("miCollectStatus");
                        }
                        if (responseContents.has("miRegisterStatus")) {
                            miRegisterStatus = responseContents.getString("miRegisterStatus");
                        }
                        if (responseContents.has("cadresPay")) {
                            cadresPay = responseContents.getString("cadresPay");
                        }
                        if (responseContents.has("miTotalFee")) {
                            miTotalFee = responseContents.getString("miTotalFee");
                        }
                        if (responseContents.has("healthCarePay")) {
                            healthCarePay = responseContents.getString("healthCarePay");
                        }
                        if (responseContents.has("heathPay")) {
                            heathPay = responseContents.getString("heathPay");
                        }
                        if (responseContents.has("accountPay")) {
                            accountPay = responseContents.getString("accountPay");
                        }
                        if (responseContents.has("selfPay")) {
                            selfPay = responseContents.getString("selfPay");
                        }
                        if (responseContents.has("civilPay")) {
                            civilPay = responseContents.getString("civilPay");
                        }
                        charge.setMiRegisterNo(miRegisterNo);
                        charge.setMiRegisterNo(miRegisterNo);
                        charge.setMiCollectDate(miCollectDate);
                        charge.setMiCollectDate(miCollectDate);