ICriteria iCriteria = session.CreateCriteria(typeof(IEPDailyStatic));

 

iCriteria
.SetProjection(Projections.ProjectionList()
.Add(Projections.GroupProperty("Month"))
.Add(Projections.Property("Month"))
.Add(Projections.Sum("Count"))
.Add(Projections.Sum("Quantity"))
.Add(Projections.Sum("PaidMoney")))
.Add(Restrictions.Between("DeliveryDate", criteria.FromDate.ToString("yyyy-MM-dd"), criteria.ToDate.ToString("yyyy-MM-dd")))
.Add(Restrictions.Eq("SchedulingStatus", 5));

 

按照 字段 “Month” 进行分组,对字段 “Count”,“Quantity”,“PaidMoney” 进行统计,

相关文章:

  • 2022-03-07
  • 2021-11-19
  • 2021-12-24
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-18
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2021-08-04
  • 2021-08-16
相关资源
相似解决方案