using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using SqlSugar; namespace IStation.DAL { /// /// 员工职责 /// public partial class EmployeeDuty : CorpTraceDAL_Sorter_UseStatus { /// /// /// public override ConnectionConfig ConnectionConfig { get { return ConfigHelper.DefaultConnectionConfig; } } /// /// 通过 TargetType 和 TargetID 获取 /// public List GetByTargetTypeAndTargetID(long CorpID, string TargetType, long TargetID) { using (var db = new SqlSugarClient(ConnectionConfig)) { return db.Queryable() .Where(x => x.CorpID == CorpID && x.TargetType == TargetType && x.TargetID == TargetID).ToList(); } } } }