where+=$@" and A.{nameof(RB_Teaching_BonusDetail.Type)} ={demodel.Type}";
where+=$@" and A.{nameof(RB_Teaching_BonusDetail.Type)} ={demodel.Type}";
}
}
if(demodel.CouseClassify>0)
{
where+=$@" and A.{nameof(RB_Teaching_BonusDetail.CouseClassify)} ={demodel.CouseClassify}";
}
stringsql=$@" select A.* from RB_Teaching_BonusDetail as A LEFT JOIN rb_teaching_bonus as b on a.BonusId=b.Id and b.State=2 where {where} order by a.Id desc";
stringsql=$@" select A.* from RB_Teaching_BonusDetail as A LEFT JOIN rb_teaching_bonus as b on a.BonusId=b.Id and b.State=2 where {where} order by a.Id desc";