builder.AppendFormat(" AND o.OrderState IN({0}) ",(int)OrderStateEnum.Normal);
builder.AppendFormat(" AND o.{0}={1} ",nameof(RB_Order_ViewModel.OrderType),(int)OrderTypeEnum.CourseOrder);
builder.AppendFormat(" AND o.CreateTime >= '{0}' ",Common.Config.NewAchievementsEnable);
builder.AppendFormat(" AND o.CreateTime >= '2021-12-01' ");
builder.AppendFormat(" AND o.OrderId NOT IN(SELECT B.OrderId FROM rb_personnel_bonus AS A INNER JOIN rb_personnel_bonusdetail AS B ON A.Id=B.BonusId WHERE A.PlanType={0} AND A.EmployeeId ={1}) ",PlanType,SaleId);