You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
50 lines
1.4 KiB
using Kean.Domain.Stock.Commands;
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Kean.Domain.Stock.SharedServices
|
|
{
|
|
/// <summary>
|
|
/// 重定位库存
|
|
/// </summary>
|
|
public sealed class Reupload
|
|
{
|
|
private readonly ICommandBus _commandBus;
|
|
|
|
/// <summary>
|
|
/// 依赖注入
|
|
/// </summary>
|
|
public Reupload(ICommandBus commandBus) =>
|
|
_commandBus = commandBus;
|
|
|
|
/// <summary>
|
|
/// 处理程序
|
|
/// </summary>
|
|
/// <param name="transaction">事务</param>
|
|
/// <param name="barcode">托盘条码</param>
|
|
/// <param name="spec">负载规格</param>
|
|
/// <param name="original">起始位置</param>
|
|
/// <param name="destination">目标位置</param>
|
|
/// <param name="operator">操作者</param>
|
|
/// <param name="tag">标签</param>
|
|
/// <param name="timestamp">时间戳</param>
|
|
public async Task<string> Handler(
|
|
string transaction,
|
|
string barcode,
|
|
string tag,
|
|
string feedbackStatus)
|
|
{
|
|
ReuploadHiWMSCommand command = new ReuploadHiWMSCommand
|
|
{
|
|
Transaction = transaction,
|
|
Barcode = barcode,
|
|
RequestNo = tag,
|
|
FeedbackStatus = feedbackStatus
|
|
};
|
|
await _commandBus.Execute(command);
|
|
return (command.Message);
|
|
|
|
}
|
|
|
|
}
|
|
}
|