Commit 69dfb15b by 李承祥

no message

parent fb1f594a
......@@ -74,8 +74,8 @@ public dynamic Survey(int userId, int hospitalId)
var fee = perforHospersonfeeRepository.GetEntities(t => t.Year == allot.Year && t.Month == allot.Month);
if (fee != null)
{
keyvalue.Add("门诊患者均次", fee.Sum(t => t.Fee.Value) / fee.Sum(t => t.PersonTime.Value));
keyvalue.Add("住院患者均次", fee.Sum(t => t.Fee.Value) / fee.Sum(t => t.PersonTime.Value));
keyvalue.Add("门诊患者均次", fee.Where(t => t.Source == "门诊").Sum(t => t.Fee.Value) / fee.Where(t => t.Source == "门诊").Sum(t => t.PersonTime.Value));
keyvalue.Add("住院患者均次", fee.Where(t => t.Source == "住院").Sum(t => t.Fee.Value) / fee.Where(t => t.Source == "住院").Sum(t => t.PersonTime.Value));
}
return new
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment