using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Net;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WIDESEAWCS_Core;
|
using WIDESEAWCS_Core.BaseRepository;
|
using WIDESEAWCS_Core.BaseServices;
|
using WIDESEAWCS_ITaskInfoService;
|
using WIDESEAWCS_Model.Models;
|
|
namespace WIDESEAWCS_TelescopicService
|
{
|
public class IPaddressServer : ServiceBase<Dt_CustomIPaddress, IRepository<Dt_CustomIPaddress>>, IIPaddressServer
|
{
|
public IRepository<Dt_CustomIPaddress> Repository => BaseDal;
|
public IPaddressServer(IRepository<Dt_CustomIPaddress> BaseDal) : base(BaseDal)
|
{
|
|
}
|
|
public WebResponseContent GetStandid(string LocalIP)
|
{
|
var cunstomip = BaseDal.QueryData(x => x.IPaddress == LocalIP).FirstOrDefault();
|
if (cunstomip == null)
|
{
|
return new WebResponseContent { Status = false, Message = "请配置该轨道站ip地址" };
|
}
|
return new WebResponseContent { Status = true, Data = cunstomip.StationID };
|
}
|
}
|
}
|