using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.WMS.Core.Op.Entity.TaskInteraction;
using DS.WMS.Core.Op.Interface.TaskInteraction;
namespace DS.WMS.Core.Op.Method.TaskInteraction
{
///
/// 邮件配置服务
///
public class TaskMailService : ServiceBase, ITaskMailService
{
///
/// 初始化
///
///
public TaskMailService(IServiceProvider provider) : base(provider)
{
}
///
/// 获取分页列表
///
///
///
public async Task>> GetListAsync(PageRequest request)
{
var whereList = request.GetConditionalModels(Db);
return await TenantDb.Queryable().Includes(x => x.Receiver).Includes(x => x.Sender)
.Where(whereList).ToQueryPageAsync(request.PageCondition);
}
/////
///// 编辑
/////
/////
/////
//public async Task EditAsync(BusinessTaskMail taskMail)
//{
// try
// {
// }
// catch (Exception ex)
// {
// await TenantDb.Ado.RollbackTranAsync();
// await ex.LogAsync(Db);
// return DataResult.FailedWithDesc(nameof(MultiLanguageConst.Operation_Failed));
// }
// if (taskMail.Id == 0)
// {
// taskMail.Receiver ??= new();
// taskMail.Sender ??= new();
// await TenantDb.InsertNav(taskMail).Include(x => x.Receiver).Include(x => x.Sender).ExecuteCommandAsync();
// }
// else
// {
// }
//}
}
}