using JiepeiWMS.Common;
|
using JiepeiWMS.IRepository.Base;
|
using JiepeiWMS.IServices;
|
using JiepeiWMS.Model.Models;
|
using JiepeiWMS.Services.BASE;
|
using System.Collections.Generic;
|
using System.Threading.Tasks;
|
|
namespace JiepeiWMS.Services
|
{
|
public class TopicDetailServices : BaseServices<TopicDetail>, ITopicDetailServices
|
{
|
IBaseRepository<TopicDetail> _dal;
|
public TopicDetailServices(IBaseRepository<TopicDetail> dal)
|
{
|
this._dal = dal;
|
base.BaseDal = dal;
|
}
|
|
/// <summary>
|
/// 获取开Bug数据(缓存)
|
/// </summary>
|
/// <returns></returns>
|
[Caching(AbsoluteExpiration = 10)]
|
public async Task<List<TopicDetail>> GetTopicDetails()
|
{
|
return await base.Query(a => !a.tdIsDelete && a.tdSectendDetail == "tbug");
|
}
|
}
|
}
|