@@ -420,7 +420,7 @@ WHERE {where} ORDER BY {orderBy}
{
createBy=demodel.EnterID;
}
where+=$@" and (o.{nameof(RB_Order_ViewModel.CreateBy)} = {createBy} OR o.{nameof(RB_Order_ViewModel.EnterID)}={createBy} )";
where+=$@" and (o.{nameof(RB_Order_ViewModel.CreateBy)} = {createBy} OR o.{nameof(RB_Order_ViewModel.EnterID)}={createBy}OR o.{nameof(RB_Order_ViewModel.CourseConsultantId)}={createBy})";
}
if(demodel.CourseSubject>0)
{
...
...
@@ -1429,8 +1429,9 @@ WHERE 1=1 AND A.OrderState IN(1,2) {0}
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:"")}