仓位接口-支持多个仓位ID
This commit is contained in:
@@ -4126,6 +4126,11 @@
|
|||||||
ID
|
ID
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:WMS.Web.Core.Dto.SingleData.IdsRequest.Ids">
|
||||||
|
<summary>
|
||||||
|
Id集合
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="T:WMS.Web.Core.Dto.SingleData.NameRequest">
|
<member name="T:WMS.Web.Core.Dto.SingleData.NameRequest">
|
||||||
<summary>
|
<summary>
|
||||||
名称请求对象
|
名称请求对象
|
||||||
|
|||||||
@@ -1090,7 +1090,7 @@
|
|||||||
</summary>
|
</summary>
|
||||||
<param name="creatorId"></param>
|
<param name="creatorId"></param>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:WMS.Web.Domain.Entitys.OutStock.SyncSuccess(System.String,System.Int32)">
|
<member name="M:WMS.Web.Domain.Entitys.OutStock.SyncSuccess(System.Collections.Generic.List{System.Int32},System.Int32)">
|
||||||
<summary>
|
<summary>
|
||||||
同步金蝶(成功)
|
同步金蝶(成功)
|
||||||
</summary>
|
</summary>
|
||||||
@@ -1766,6 +1766,14 @@
|
|||||||
<param name="companyId"></param>
|
<param name="companyId"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:WMS.Web.Domain.Infrastructure.IBasicsRepositories.GetSubUcStockAsync(System.Collections.Generic.List{System.Int32},System.Int32)">
|
||||||
|
<summary>
|
||||||
|
获取仓位详情:根据仓位ID集合和公司ID
|
||||||
|
</summary>
|
||||||
|
<param name="ids"></param>
|
||||||
|
<param name="companyId"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="M:WMS.Web.Domain.Infrastructure.IBasicsRepositories.GetUcStockAsync(System.String,System.String,System.Int32)">
|
<member name="M:WMS.Web.Domain.Infrastructure.IBasicsRepositories.GetUcStockAsync(System.String,System.String,System.Int32)">
|
||||||
<summary>
|
<summary>
|
||||||
获取仓库
|
获取仓库
|
||||||
@@ -3483,7 +3491,7 @@
|
|||||||
<member name="T:WMS.Web.Domain.Services.ChangeMoveBoxService">
|
<member name="T:WMS.Web.Domain.Services.ChangeMoveBoxService">
|
||||||
改箱 移箱服务
|
改箱 移箱服务
|
||||||
</member>
|
</member>
|
||||||
<member name="M:WMS.Web.Domain.Services.ChangeMoveBoxService.ChangeBoxSave(WMS.Web.Core.Dto.ChangeBoxRecord.SaveChangeBoxRecordRequest,WMS.Web.Core.Dto.Login.LoginInDto,System.Boolean)">
|
<member name="M:WMS.Web.Domain.Services.ChangeMoveBoxService.ChangeBoxSave(System.Collections.Generic.List{WMS.Web.Core.Dto.ChangeBoxRecord.SaveChangeBoxRecordRequest},WMS.Web.Core.Dto.Login.LoginInDto,System.Boolean)">
|
||||||
<summary>
|
<summary>
|
||||||
改箱保存
|
改箱保存
|
||||||
</summary>
|
</summary>
|
||||||
@@ -5523,6 +5531,11 @@
|
|||||||
获取仓位详情:根据仓位ID和公司ID
|
获取仓位详情:根据仓位ID和公司ID
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="F:WMS.Web.Domain.Values.Single.SysConfigAction.GetWmsSubWarehouseByIdsAndCompany">
|
||||||
|
<summary>
|
||||||
|
获取仓位详情:根据仓位ID集合和公司ID
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="T:WMS.Web.Domain.Values.TakeStockType">
|
<member name="T:WMS.Web.Domain.Values.TakeStockType">
|
||||||
<summary>
|
<summary>
|
||||||
盘点单类型
|
盘点单类型
|
||||||
|
|||||||
22
src/WMS.Web.Core/Dto/SingleData/IdsRequest.cs
Normal file
22
src/WMS.Web.Core/Dto/SingleData/IdsRequest.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace WMS.Web.Core.Dto.SingleData
|
||||||
|
{
|
||||||
|
public class IdsRequest : SingleDataRequest
|
||||||
|
{
|
||||||
|
public IdsRequest() { }
|
||||||
|
|
||||||
|
public IdsRequest(List<int> ids,int companyId)
|
||||||
|
{
|
||||||
|
this.Ids = ids;
|
||||||
|
this.CompanyId = companyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Id集合
|
||||||
|
/// </summary>
|
||||||
|
public List<int> Ids { get; set; } = new List<int>();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -41,6 +41,14 @@ namespace WMS.Web.Domain.Infrastructure
|
|||||||
/// <param name="companyId"></param>
|
/// <param name="companyId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<UcSubStockResponse> GetSubUcStockAsync(int id, int companyId);
|
Task<UcSubStockResponse> GetSubUcStockAsync(int id, int companyId);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取仓位详情:根据仓位ID集合和公司ID
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="ids"></param>
|
||||||
|
/// <param name="companyId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
Task<UcSubStockResponse> GetSubUcStockAsync(List<int> ids, int companyId);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取仓库
|
/// 获取仓库
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -340,6 +340,11 @@ namespace WMS.Web.Domain.Services
|
|||||||
//6.当按产品上架:就要调用改箱的操作;
|
//6.当按产品上架:就要调用改箱的操作;
|
||||||
if (dto.ShelfMethod == (int)ShelfMethod.Product)
|
if (dto.ShelfMethod == (int)ShelfMethod.Product)
|
||||||
{
|
{
|
||||||
|
//通过序列号,获取序列号对应的箱
|
||||||
|
var cureent_serialNumbs = await _serialNumbersRepositories.GetEntityList(dto.Boxs.SelectMany(x => x.Details).SelectMany(x => x.SerialNumbers).ToList());
|
||||||
|
var current_boxIds= cureent_serialNumbs.GroupBy(x => x.BoxId).Select(x => x.Key).ToList();
|
||||||
|
|
||||||
|
var ganenrateChangeBoxs = new List<SaveChangeBoxRecordRequest>();
|
||||||
var dto_box = dto.Boxs.FirstOrDefault();
|
var dto_box = dto.Boxs.FirstOrDefault();
|
||||||
var changeBox = new SaveChangeBoxRecordRequest();
|
var changeBox = new SaveChangeBoxRecordRequest();
|
||||||
changeBox.DestBoxId = dto_box.BoxId;
|
changeBox.DestBoxId = dto_box.BoxId;
|
||||||
@@ -349,9 +354,12 @@ namespace WMS.Web.Domain.Services
|
|||||||
changeBoxRD.MaterialId = item.MaterialId;
|
changeBoxRD.MaterialId = item.MaterialId;
|
||||||
changeBoxRD.Qty = item.Qty;
|
changeBoxRD.Qty = item.Qty;
|
||||||
changeBoxRD.SerialNumbers = item.SerialNumbers;
|
changeBoxRD.SerialNumbers = item.SerialNumbers;
|
||||||
|
changeBox.Details.Add(changeBoxRD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ganenrateChangeBoxs.Add(changeBox);
|
||||||
//改箱保存操作
|
//改箱保存操作
|
||||||
var changeBoxSave_Result = await _changeMoveBoxService.ChangeBoxSave(changeBox, loginInfo, isTransaction);
|
var changeBoxSave_Result = await _changeMoveBoxService.ChangeBoxSave(ganenrateChangeBoxs, loginInfo, isTransaction);
|
||||||
if (!changeBoxSave_Result.IsSuccess)
|
if (!changeBoxSave_Result.IsSuccess)
|
||||||
return changeBoxSave_Result;
|
return changeBoxSave_Result;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -197,5 +197,9 @@ namespace WMS.Web.Domain.Values.Single
|
|||||||
/// 获取仓位详情:根据仓位ID和公司ID
|
/// 获取仓位详情:根据仓位ID和公司ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
GetWmsSubWarehouseByIdAndCompany = 45,
|
GetWmsSubWarehouseByIdAndCompany = 45,
|
||||||
|
/// <summary>
|
||||||
|
/// 获取仓位详情:根据仓位ID集合和公司ID
|
||||||
|
/// </summary>
|
||||||
|
GetWmsSubWarehouseByIdsAndCompany = 46,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,6 +87,22 @@ namespace WMS.Web.Repositories
|
|||||||
return result.Data;
|
return result.Data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取仓位详情:根据仓位ID集合和公司ID
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="ids"></param>
|
||||||
|
/// <param name="companyId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public async Task<UcSubStockResponse> GetSubUcStockAsync(List<int> ids, int companyId)
|
||||||
|
{
|
||||||
|
var result = await _singleDataService.GetSysConfigData<Result<UcSubStockResponse>, IdsRequest>
|
||||||
|
(new IdsRequest(ids, companyId),
|
||||||
|
SysConfigAction.GetWmsSubWarehouseByIdsAndCompany);
|
||||||
|
if (!result.Success)
|
||||||
|
return null;
|
||||||
|
return result.Data;
|
||||||
|
}
|
||||||
|
|
||||||
public async Task<List<UcStockResponse>> GetUcStockAsync(string systemCode, string name, int companyId)
|
public async Task<List<UcStockResponse>> GetUcStockAsync(string systemCode, string name, int companyId)
|
||||||
{
|
{
|
||||||
var result = await _singleDataService.GetSysConfigData<ResultList<UcStockResponse>, SystemCodeRequest>
|
var result = await _singleDataService.GetSysConfigData<ResultList<UcStockResponse>, SystemCodeRequest>
|
||||||
|
|||||||
Reference in New Issue
Block a user