添加-获取仓库基础数据的方法
This commit is contained in:
@@ -6670,6 +6670,16 @@
|
||||
获取仓位详情:根据仓位ID集合和公司ID
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:WMS.Web.Domain.Values.Single.SysConfigAction.GetWmsSubWarehouseByCodeAndCompany">
|
||||
<summary>
|
||||
获取仓位详情:根据仓位Code和公司ID
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:WMS.Web.Domain.Values.Single.SysConfigAction.GetWmsSubWarehouseByCodesAndCompany">
|
||||
<summary>
|
||||
获取仓位详情:根据仓位Codes集合和公司ID
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:WMS.Web.Domain.Values.SyncStatus">
|
||||
<summary>
|
||||
同步金蝶状态
|
||||
|
||||
19
src/WMS.Web.Core/Dto/SingleData/CodeRequest.cs
Normal file
19
src/WMS.Web.Core/Dto/SingleData/CodeRequest.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WMS.Web.Core.Dto.SingleData
|
||||
{
|
||||
public class CodeRequest : SingleDataRequest
|
||||
{
|
||||
public CodeRequest() { }
|
||||
|
||||
public CodeRequest(string code, int companyId)
|
||||
{
|
||||
this.Code = code;
|
||||
this.CompanyId = companyId;
|
||||
}
|
||||
|
||||
public string Code { get; set; }
|
||||
}
|
||||
}
|
||||
19
src/WMS.Web.Core/Dto/SingleData/CodesRequest.cs
Normal file
19
src/WMS.Web.Core/Dto/SingleData/CodesRequest.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WMS.Web.Core.Dto.SingleData
|
||||
{
|
||||
public class CodesRequest : SingleDataRequest
|
||||
{
|
||||
public CodesRequest() { }
|
||||
|
||||
public CodesRequest(List<string> codes, int companyId)
|
||||
{
|
||||
this.Codes = codes;
|
||||
this.CompanyId = companyId;
|
||||
}
|
||||
|
||||
public List<string> Codes { get; set; } = new List<string>();
|
||||
}
|
||||
}
|
||||
@@ -201,5 +201,15 @@ namespace WMS.Web.Domain.Values.Single
|
||||
/// 获取仓位详情:根据仓位ID集合和公司ID
|
||||
/// </summary>
|
||||
GetWmsSubWarehouseByIdsAndCompany = 46,
|
||||
|
||||
/// <summary>
|
||||
/// 获取仓位详情:根据仓位Code和公司ID
|
||||
/// </summary>
|
||||
GetWmsSubWarehouseByCodeAndCompany = 47,
|
||||
|
||||
/// <summary>
|
||||
/// 获取仓位详情:根据仓位Codes集合和公司ID
|
||||
/// </summary>
|
||||
GetWmsSubWarehouseByCodesAndCompany = 48,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,9 +108,14 @@ namespace WMS.Web.Repositories
|
||||
/// <param name="code"></param>
|
||||
/// <param name="companyId"></param>
|
||||
/// <returns></returns>
|
||||
public Task<UcSubStockResponse> GetSubUcStockAsync(string code, int companyId)
|
||||
public async Task<UcSubStockResponse> GetSubUcStockAsync(string code, int companyId)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
var result = await _singleDataService.GetSysConfigData<Result<UcSubStockResponse>, CodeRequest>
|
||||
(new CodeRequest(code, companyId),
|
||||
SysConfigAction.GetWmsSubWarehouseByCodeAndCompany);
|
||||
if (!result.Success)
|
||||
return null;
|
||||
return result.Data;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取仓位集合:根据仓位编码集合和公司ID
|
||||
@@ -118,9 +123,14 @@ namespace WMS.Web.Repositories
|
||||
/// <param name="codes"></param>
|
||||
/// <param name="companyId"></param>
|
||||
/// <returns></returns>
|
||||
public Task<List<UcSubStockResponse>> GetSubUcStockAsync(List<string> codes, int companyId)
|
||||
public async Task<List<UcSubStockResponse>> GetSubUcStockAsync(List<string> codes, int companyId)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
var result = await _singleDataService.GetSysConfigData<ResultList<UcSubStockResponse>, CodesRequest>
|
||||
(new CodesRequest(codes, companyId),
|
||||
SysConfigAction.GetWmsSubWarehouseByCodesAndCompany);
|
||||
if (!result.Success)
|
||||
return null;
|
||||
return result.Data.ToList();
|
||||
}
|
||||
public async Task<List<UcStockResponse>> GetUcStockAsync(string systemCode, string name, int companyId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user