You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
673 B
24 lines
673 B
using Entity.DbModel.System.App;
|
|
using HybirdFrameworkCore.Autofac.Attribute;
|
|
using SqlSugar;
|
|
|
|
namespace Repository.System.App;
|
|
[Scope()]
|
|
public class AppCustomerVehicleRepository : BaseRepository<AppCustomerVehicle>
|
|
{
|
|
private ISqlSugarClient DbBaseClient;
|
|
|
|
public AppCustomerVehicleRepository(ISqlSugarClient sqlSugar) : base(sqlSugar)
|
|
{
|
|
DbBaseClient = sqlSugar;
|
|
}
|
|
|
|
public List<string> GetVinList(long? customerId)
|
|
{
|
|
List<AppCustomerVehicle> vehicles = QueryByClauseToList(u => u.CustomerId == customerId);
|
|
|
|
List<string> vinList = vehicles.Select(v => v.Vin ?? string.Empty).ToList();
|
|
|
|
return vinList;
|
|
}
|
|
} |