|
@@ -272,6 +272,7 @@ namespace PTMedicalInsurance.Business
|
|
|
{
|
|
|
if (MSettl.onlineYBFalg != "Y")
|
|
|
{
|
|
|
+ Global.businessType = "01301"; //结算
|
|
|
//读电子凭证
|
|
|
if (ReadEc(out errMsg) != 0)
|
|
|
{
|
|
@@ -370,7 +371,6 @@ namespace PTMedicalInsurance.Business
|
|
|
MPat.gend = JsonHelper.getDestValue(jo, "gender");
|
|
|
MPat.brdy = JsonHelper.getDestValue(jo, "birthday");
|
|
|
MPat.naty = JsonHelper.getDestValue(jo, "nationality");
|
|
|
- MPat.payOrdId = "";
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
@@ -779,12 +779,18 @@ namespace PTMedicalInsurance.Business
|
|
|
return -1;
|
|
|
}
|
|
|
JObject joRtn = JObject.Parse(errMsg);
|
|
|
+
|
|
|
JObject joSettl = JObject.Parse(JsonHelper.getDestValue(joRtn, "result.data[0]"));
|
|
|
|
|
|
//入参
|
|
|
joInpar.Add("payOrdId", JsonHelper.getDestValue(joSettl, "SettlementID"));//支付订单号
|
|
|
joInpar.Add("appRefdSn", Utils.GetTradeNo());//应用退款流水号
|
|
|
- joInpar.Add("appRefdTime", JsonHelper.getDestValue(joInsuAdmObj, "appRefdTime"));//应用退费时间
|
|
|
+ string appRefdTime = JsonHelper.getDestValue(joInsuAdmObj, "appRefdTime");
|
|
|
+ if (string.IsNullOrEmpty(appRefdTime))
|
|
|
+ {
|
|
|
+ appRefdTime = Utils.GetDateTimeNow();
|
|
|
+ }
|
|
|
+ joInpar.Add("appRefdTime", appRefdTime);//应用退费时间
|
|
|
joInpar.Add("totlRefdAmt", JsonHelper.getDestValue(joSettl, "Sumamt"));//总退费金额
|
|
|
joInpar.Add("psnAcctRefdAmt", JsonHelper.getDestValue(joSettl, "AccountPaySumamt"));//医保个人账户支付
|
|
|
joInpar.Add("fundRefdAmt", JsonHelper.getDestValue(joSettl, "FundPaySumamt"));//基金支付
|