#region << 版 本 注 释 >>
|
/*----------------------------------------------------------------
|
* 命名空间:WIDESEAWCS_TaskInfoService
|
* 创建者:胡童庆
|
* 创建时间:2024/8/2 16:13:36
|
* 版本:V1.0.0
|
* 描述:
|
*
|
* ----------------------------------------------------------------
|
* 修改人:
|
* 修改时间:
|
* 版本:V1.0.1
|
* 修改说明:
|
*
|
*----------------------------------------------------------------*/
|
#endregion << 版 本 注 释 >>
|
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WIDESEAWCS_Core.BaseServices;
|
using WIDESEAWCS_ITaskInfoRepository;
|
using WIDESEAWCS_ITaskInfoService;
|
using WIDESEAWCS_Model.Models;
|
using WIDESEAWCS_TaskInfoRepository;
|
|
namespace WIDESEAWCS_TaskInfoService
|
{
|
public class StationManagerService : ServiceBase<Dt_StationManager, IStationManagerRepository>, IStationManagerService
|
{
|
public StationManagerService(IStationManagerRepository BaseDal) : base(BaseDal)
|
{
|
}
|
|
public List<Dt_StationManager> GetStationManagers()
|
{
|
return BaseDal.QueryData(x => !x.Enable);
|
}
|
|
public Dt_StationManager GetStationManagerByStationCode(string stationCode)
|
{
|
return BaseDal.QueryFirst(x => x.StationCode == stationCode);
|
}
|
|
public List<string> GetStaionCodes(string counterDeviceCode, string ignoreStationCode = "")
|
{
|
if (string.IsNullOrEmpty(ignoreStationCode))
|
{
|
return BaseDal.QueryData(x => x.StationCode, x => !x.Enable && x.CounterDeviceCode == counterDeviceCode);
|
}
|
return BaseDal.QueryData(x => x.StationCode, x => !x.Enable && x.CounterDeviceCode == counterDeviceCode && x.StationCode != ignoreStationCode);
|
}
|
}
|
}
|