|
@@ -521,7 +521,7 @@ namespace PTMedicalInsurance.Business
|
|
|
+ getFee(jo, "poor_pay") //贫困人口再补助
|
|
|
+ getFee(jo, "medis_pay"); //医疗减免金额
|
|
|
|
|
|
- ybAmt = getFee(jo, "fund_pay_sumamt"); //ybfdje(医保负担金额)
|
|
|
+ ybAmt = getFee(jo, "insu_part_amt"); //ybfdje(医保负担金额)
|
|
|
psnAcctAmt = getFee(jo, "acct_pay"); //账户支付金额
|
|
|
psnCashAmt = getFee(jo, "psn_cash_pay"); //现金支付金额
|
|
|
psnPartAmt = getFee(jo, "psn_part_amt");
|
|
@@ -533,9 +533,11 @@ namespace PTMedicalInsurance.Business
|
|
|
joSumFee.Add("psnCashAmt", psnCashAmt);
|
|
|
//zje(medfee_sumamt) = ybfdje(fund_pay_sumamt) + brfdje(psn_part_amt) + ylbzje(maf_pay) + yyfdje(hosp_part_amt) + yljmje(medis_pay) + pkryzjzje(poor_pay) + mzbzje(hifob_pay)
|
|
|
|
|
|
- if (medFee != (ybAmt + psnPartAmt + hospAmt + otherAmt))
|
|
|
+ decimal total = (ybAmt + psnAcctAmt + psnCashAmt + hospAmt + otherAmt);
|
|
|
+ if (medFee != total)
|
|
|
{
|
|
|
- errMsg = "ybAmt + psnPartAmt + hospAmt + otherAmt != medFee";
|
|
|
+ Global.writeLog("ybAmt:"+ybAmt+ ",psnAcctAmt:" + psnAcctAmt + "psnCashAmt:"+ psnCashAmt + ",hospAmt:" + hospAmt+",otherAmt:"+otherAmt);
|
|
|
+ errMsg = "总费用:" + medFee + "!= 医保费用:" + total;
|
|
|
return -1;
|
|
|
}
|
|
|
return 0;
|