namespace HStation.BLL
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public class XhsPumpPhartMappingExtensions : HStation.CAL.IXhsPumpPhartMappingExtensions
|
{
|
private readonly HStation.CAL.IXhsPumpPhartMappingExtensions _cal = CALCreateHelper.CreateCAL<HStation.CAL.IXhsPumpPhartMappingExtensions>();
|
|
|
#region Query
|
|
/// <summary>
|
/// 获取所有
|
/// </summary>
|
/// <returns></returns>
|
public async Task<List<XhsPumpPhartMappingExtensionsDto>> GetAll()
|
{
|
return await Task.Factory.StartNew(() =>
|
{
|
return new List<XhsPumpPhartMappingExtensionsDto>();
|
});
|
}
|
|
|
/// <summary>
|
/// 通过 PumpID 获取
|
/// </summary>
|
public async Task<List<XhsPumpPhartMappingExtensionsDto>> GetByPumpID(long PumpID)
|
{
|
return await _cal.GetByPumpID(PumpID);
|
}
|
|
/// <summary>
|
/// 通过 ID 获取
|
/// </summary>
|
public async Task<XhsPumpPhartMappingExtensionsDto> GetByID(long ID)
|
{
|
return await _cal.GetByID(ID);
|
}
|
|
/// <summary>
|
/// 通过 ID 获取
|
/// </summary>
|
public async Task<List<XhsPumpPhartMappingExtensionsDto>> GetByIds(List<long> Ids)
|
{
|
return await _cal.GetByIds(Ids);
|
}
|
|
#endregion
|
|
#region Insert
|
|
/// <summary>
|
/// 添加一条
|
/// </summary>
|
public async Task<long> Insert(AddXhsPumpPhartMappingExtensionsInput input)
|
{
|
return await _cal.Insert(input);
|
}
|
|
/// <summary>
|
/// 批量插入
|
/// </summary>
|
public async Task<bool> Inserts(List<AddXhsPumpPhartMappingExtensionsInput> inputList)
|
{
|
return await _cal.Inserts(inputList);
|
}
|
|
|
/// <summary>
|
/// 大批量插入
|
/// </summary>
|
public async Task<bool> BulkInserts(List<AddXhsPumpPhartMappingExtensionsInput> inputList)
|
{
|
return await Task.Factory.StartNew(() =>
|
{
|
return false;
|
});
|
}
|
|
#endregion
|
|
#region Update
|
|
/// <summary>
|
/// 更新一条
|
/// </summary>
|
public async Task<bool> Update(UpdateXhsPumpPhartMappingExtensionsInput input)
|
{
|
return await _cal.Update(input);
|
|
}
|
|
/// <summary>
|
/// 批量更新
|
/// </summary>
|
public async Task<bool> Updates(List<UpdateXhsPumpPhartMappingExtensionsInput> inputList)
|
{
|
return await Task.Factory.StartNew(() =>
|
{
|
return false;
|
});
|
}
|
|
|
/// <summary>
|
/// 大批量更新
|
/// </summary>
|
public async Task<bool> BulkUpdates(List<UpdateXhsPumpPhartMappingExtensionsInput> inputList)
|
{
|
return await Task.Factory.StartNew(() =>
|
{
|
return false;
|
});
|
}
|
|
#endregion
|
|
#region Delete
|
|
/// <summary>
|
/// 通过 ID 删除
|
/// </summary>
|
public async Task<bool> DeleteByID(long ID)
|
{
|
return await Task.Factory.StartNew(() =>
|
{
|
return false;
|
});
|
}
|
|
/// <summary>
|
/// 通过 DiagramID 删除
|
/// </summary>
|
public async Task<bool> DeleteByDiagramID(long DiagramID)
|
{
|
return await _cal.DeleteByDiagramID(DiagramID);
|
}
|
|
/// <summary>
|
/// 通过 Ids 删除
|
/// </summary>
|
public async Task<bool> DeleteByIds(List<long> Ids)
|
{
|
return await Task.Factory.StartNew(() =>
|
{
|
return false;
|
});
|
}
|
|
/// <summary>
|
/// 删除全部
|
/// </summary>
|
/// <returns></returns>
|
public async Task<bool> DeleteAll()
|
{
|
return await Task.Factory.StartNew(() =>
|
{
|
return false;
|
});
|
}
|
#endregion
|
}
|
}
|