@@ -367,7 +367,8 @@ WHERE 1=1 and A.Status=0 and class.Status=0 and b.OrderState<>3
}
if(demodel.Teacher_Id>0||demodel.HelpEnterId>0)
{
builder.AppendFormat($@" and (class.Teacher_Id ={demodel.Teacher_Id} OR B.HelpEnterId ={demodel.HelpEnterId} )");
//builder.AppendFormat($@" and (class.Teacher_Id ={demodel.Teacher_Id} OR o.HelpEnterId ={demodel.HelpEnterId} )");
builder.AppendFormat($@" and (class.Teacher_Id ={demodel.Teacher_Id} OR stu.StuId IN(SELECT StuId FROM rb_student_assist WHERE `Status`=0 AND AssistId={demodel.HelpEnterId}) ) ");