using Entity.DbModel.System.App; using HybirdFrameworkCore.Autofac.Attribute; using SqlSugar; namespace Repository.System.App; [Scope()] public class AppCustomerVehicleRepository : BaseRepository { private ISqlSugarClient DbBaseClient; public AppCustomerVehicleRepository(ISqlSugarClient sqlSugar) : base(sqlSugar) { DbBaseClient = sqlSugar; } public List GetVinList(long? customerId) { List vehicles = QueryByClauseToList(u => u.CustomerId == customerId); List vinList = vehicles.Select(v => v.Vin ?? string.Empty).ToList(); return vinList; } }