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.
27 lines
488 B
27 lines
488 B
using EC.Entity.Transport;
|
|
using EC.Service.Base;
|
|
|
|
namespace EC.Service.Transport
|
|
{
|
|
public class AuthService : MvcService<AuthEntity>
|
|
{
|
|
public AuthService()
|
|
{
|
|
}
|
|
|
|
#region BLL
|
|
|
|
/// <summary>
|
|
/// 检查运输车有无权限
|
|
/// </summary>
|
|
/// <param name="truckPlate"></param>
|
|
/// <returns></returns>
|
|
public bool CheckTruckAuth(string truckPlate)
|
|
{
|
|
var auth = SelectEntityByWhere($"TruckPlate='{truckPlate}'");
|
|
return auth != null;
|
|
}
|
|
|
|
#endregion BLL
|
|
}
|
|
}
|