|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using DS.Module.Core.Extensions;
|
|
|
|
|
using DS.WMS.Core.Application.Entity;
|
|
|
|
|
using DS.WMS.Core.Application.Interface;
|
|
|
|
|
using DS.WMS.Core.Fee.Entity;
|
|
|
|
|
using DS.WMS.Core.Fee.Method;
|
|
|
|
|
using DS.WMS.Core.Flow.Dtos;
|
|
|
|
@ -16,8 +17,7 @@ namespace DS.WMS.Core.Application.Method
|
|
|
|
|
/// 申请单基础实现
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="TEntity">实体的类型声明</typeparam>
|
|
|
|
|
/// <typeparam name="TModel">模型的类型声明</typeparam>
|
|
|
|
|
public class ApplicationService<TEntity> : FeeServiceBase
|
|
|
|
|
public class ApplicationService<TEntity> : FeeServiceBase, IApplicationService<TEntity>
|
|
|
|
|
where TEntity : ApplicationBase, new()
|
|
|
|
|
//where TModel : ApplicationDto
|
|
|
|
|
{
|
|
|
|
@ -191,7 +191,7 @@ namespace DS.WMS.Core.Application.Method
|
|
|
|
|
OriginalAmount = x.OriginalAmount
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
|
|
|
|
|
var appIds = details.Select(x=>x.ApplicationId).Distinct().ToList();
|
|
|
|
|
var appIds = details.Select(x => x.ApplicationId).Distinct().ToList();
|
|
|
|
|
var apps = await TenantDb.Queryable<TEntity>().Where(x => appIds.Contains(x.Id)).Select(x => new TEntity
|
|
|
|
|
{
|
|
|
|
|
Id = x.Id,
|
|
|
|
@ -224,7 +224,7 @@ namespace DS.WMS.Core.Application.Method
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="applications">申请单</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
protected virtual DataResult PreDelete(List<TEntity> applications)
|
|
|
|
|
protected virtual DataResult PreDelete(List<TEntity> applications)
|
|
|
|
|
{
|
|
|
|
|
return DataResult.Success;
|
|
|
|
|
}
|
|
|
|
@ -234,7 +234,7 @@ namespace DS.WMS.Core.Application.Method
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="details">申请单明细</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
protected virtual Task OnDeleteDetailAsync(List<ApplicationDetail> details)
|
|
|
|
|
protected virtual Task OnDeleteDetailAsync(List<ApplicationDetail> details)
|
|
|
|
|
{
|
|
|
|
|
return Task.CompletedTask;
|
|
|
|
|
}
|
|
|
|
@ -356,7 +356,7 @@ namespace DS.WMS.Core.Application.Method
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="applications">申请单</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
protected virtual DataResult PreSubmitApproval(List<TEntity> applications)
|
|
|
|
|
protected virtual DataResult PreSubmitApproval(List<TEntity> applications)
|
|
|
|
|
{
|
|
|
|
|
return DataResult.Success;
|
|
|
|
|
}
|
|
|
|
|