stringsql=$@"SELECT o.CourseConsultantId,SUM(o.PreferPrice - o.DiscountMoney) as PreferPrice
,SUM(o.Income) as Income,SUM(Refund) AS Refund,SUM(o.PlatformTax) as PlatformTax
,COUNT(0) as CancelNum
FROM rb_order o WHERE o.Group_Id ={group_Id} and o.OrderState <>3 and o.CreateTime >='{startMonth}' and o.CreateTime <='{endMonth} 23:59:59' and o.CourseConsultantId >0 {(empId>0?" and o.CourseConsultantId ="+empId:"")}