27 lines
731 B
C#
27 lines
731 B
C#
namespace YLErp.Modules.TradeModule
|
|
{
|
|
/// <summary>
|
|
/// 交易操作查询服务
|
|
/// </summary>
|
|
public class TradeActionQueryService : TradeServiceBase
|
|
{
|
|
public TradeActionQueryService(YLBaseService baseService) : base(baseService)
|
|
{
|
|
|
|
}
|
|
|
|
public TradeActionQueryService(OptUserInfo userInfo) : base(userInfo)
|
|
{
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据查询条件返回查询数据(按照日期倒序)
|
|
/// </summary>
|
|
public IEnumerable<TradeAction> GetDatas(Func<TradeAction, bool> predicate)
|
|
{
|
|
return DbContext.TradeAction.AsNoTracking().Where(predicate).OrderByDescending(n => n.ValueDate).ToArray();
|
|
}
|
|
}
|
|
}
|