从山证v2.3.0拷贝
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user