|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using AngleSharp.Css;
|
|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using DS.Module.Core.Condition;
|
|
|
|
|
using DS.Module.Core.Extensions;
|
|
|
|
|
using DS.WMS.Core.Code.Entity;
|
|
|
|
@ -497,6 +498,79 @@ namespace DS.WMS.Core.Fee.Method
|
|
|
|
|
return await TenantDb.Queryable<FeeCustTemplate>().Where(whereList).ToQueryPageAsync(request.PageCondition);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///// <summary>
|
|
|
|
|
///// 视图列表
|
|
|
|
|
///// </summary>
|
|
|
|
|
///// <param name="request"></param>
|
|
|
|
|
///// <returns></returns>
|
|
|
|
|
//public async Task<DataResult<List<FeeCustTemplateView>>> GetListViewAsync(PageRequest request)
|
|
|
|
|
//{
|
|
|
|
|
// var list = TenantDb.Queryable<FeeCustTemplateDetail>()
|
|
|
|
|
// .InnerJoin<FeeCustTemplate>((d, t) => d.TemplateId == t.Id)
|
|
|
|
|
// .LeftJoin<CodeCarrier>((d, t, cc) => t.CarrierId == cc.Id)
|
|
|
|
|
// .LeftJoin<CodeLanes>((d, t, cc, cl) => t.LaneId == cl.Id)
|
|
|
|
|
// .LeftJoin<CodeSource>((d, t, cc, cl, cs) => t.SourceId == cs.Id)
|
|
|
|
|
// .LeftJoin<CodeSourceDetail>((d, t, cc, cl, cs, csd) => t.SourceDetailId == csd.Id)
|
|
|
|
|
// .LeftJoin<InfoClient>((d, t, cc, cl, cs, csd, c) => t.ForwarderId == c.Id)
|
|
|
|
|
// .LeftJoin<SysOrg>((d, t, cc, cl, cs, csd, c, so) => t.DeptOrgId == so.Id, "shippingweb8_dev.sys_org")
|
|
|
|
|
// .GroupBy((d, t, cc, cl, cs, csd, c, so) => new
|
|
|
|
|
// {
|
|
|
|
|
// d.TemplateId,
|
|
|
|
|
// d.FeeId,
|
|
|
|
|
// d.FeeName,
|
|
|
|
|
// d.CustomerType,
|
|
|
|
|
// d.CustomerId,
|
|
|
|
|
// d.CustomerName,
|
|
|
|
|
|
|
|
|
|
// t.BusinessType,
|
|
|
|
|
// t.FeeType,
|
|
|
|
|
// t.StartTime,
|
|
|
|
|
// t.EndTime,
|
|
|
|
|
// t.IsDisabled,
|
|
|
|
|
// t.FeeCategoryName,
|
|
|
|
|
// t.Priority,
|
|
|
|
|
// t.POLCode,
|
|
|
|
|
// t.PODCode,
|
|
|
|
|
// t.MBLFrtCode,
|
|
|
|
|
|
|
|
|
|
// cl.LaneName,
|
|
|
|
|
// CarrierName = cc.CnName,
|
|
|
|
|
// cs.SourceName,
|
|
|
|
|
// SourceDetailName = csd.DetailName,
|
|
|
|
|
// ForwarderName = c.ShortName,
|
|
|
|
|
// DeptOrgName = so.OrgName
|
|
|
|
|
// }).Select((d, t, cc, cl, cs, csd, c, so) => new FeeCustTemplateView
|
|
|
|
|
// {
|
|
|
|
|
// Id = d.Id,
|
|
|
|
|
// TemplateId = d.TemplateId,
|
|
|
|
|
// CustomerType = d.CustomerType,
|
|
|
|
|
// CustomerId = d.CustomerId,
|
|
|
|
|
// CustomerName = d.CustomerName,
|
|
|
|
|
// FeeId = d.FeeId,
|
|
|
|
|
// FeeName = d.FeeName,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// BusinessType = t.BusinessType,
|
|
|
|
|
// FeeType = t.FeeType,
|
|
|
|
|
// StartTime = t.StartTime,
|
|
|
|
|
// EndTime = t.EndTime,
|
|
|
|
|
// IsDisabled = t.IsDisabled,
|
|
|
|
|
// FeeCategoryName = t.FeeCategoryName,
|
|
|
|
|
// Priority = t.Priority,
|
|
|
|
|
// POLCode = t.POLCode,
|
|
|
|
|
// PODCode = t.PODCode,
|
|
|
|
|
// MBLFrtCode = t.MBLFrtCode,
|
|
|
|
|
// LaneName = cl.LaneName,
|
|
|
|
|
// CarrierName = cc.CnName,
|
|
|
|
|
// SourceName = cs.SourceName,
|
|
|
|
|
// SourceDetailName = csd.DetailName,
|
|
|
|
|
// ForwarderName = c.ShortName,
|
|
|
|
|
// DeptOrgName = so.OrgName
|
|
|
|
|
// });
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 详情
|
|
|
|
|
/// </summary>
|
|
|
|
@ -686,7 +760,7 @@ namespace DS.WMS.Core.Fee.Method
|
|
|
|
|
var list = await TenantDb.Queryable<FeeCustTemplate>().Where(x => ids.Contains(x.Id))
|
|
|
|
|
.Includes(x => x.Details).ToListAsync();
|
|
|
|
|
|
|
|
|
|
foreach (var item in list)
|
|
|
|
|
foreach (var item in list)
|
|
|
|
|
{
|
|
|
|
|
item.Id = 0;
|
|
|
|
|
item.CreateTime = dt;
|
|
|
|
|