using HybirdFrameworkCore.Autofac.Attribute; using HybirdFrameworkEntity.DbModel; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HybirdFrameworkRepository.System { [Scope("SingleInstance")] public class BsNetEqmParamInfoRepository : BaseRepository { private ISqlSugarClient DbBaseClient; public BsNetEqmParamInfoRepository(ISqlSugarClient sqlSugar) : base(sqlSugar) { DbBaseClient = sqlSugar; } public List QueryListByFEqmTypeNo(List fEqmTypeNo) { return DbBaseClient .Queryable() .In(t => t.EqmTypeNo, fEqmTypeNo) .ToList(); } public IEnumerable> QueryConnectParams(List types) { List infos = this.QueryListByFEqmTypeNo(types); return infos.GroupBy(i => i.EqmTypeNo).ToList(); } } }