调整函数,支持按份数批量打印
This commit is contained in:
@@ -307,13 +307,15 @@ namespace Tnb.WarehouseMgr
|
||||
[HttpPost, NonUnify, AllowAnonymous]
|
||||
public async Task<Result> TaskCallback(TaskCallBackInput input)
|
||||
{
|
||||
Log.Information($"接收参数:{JsonConvert.SerializeObject(input)}");
|
||||
Log.Information($"任务状态上报->接收参数:{JsonConvert.SerializeObject(input)}");
|
||||
try
|
||||
{
|
||||
|
||||
List<WmsDistaskH> disTasks = await _db.Queryable<WmsDistaskH>().Where(it => it.bill_code.Contains(input.taskCode)).ToListAsync();
|
||||
if (input.action == "LOAD")
|
||||
{
|
||||
Logger.Information("----------Load Begin----------");
|
||||
|
||||
TaskExecuteAfterUpInput taskExecuteAfterUpInput = new()
|
||||
{
|
||||
disTaskIds = disTasks.Select(x => x.id).ToList()
|
||||
@@ -333,9 +335,13 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
}
|
||||
|
||||
Logger.Information("----------Load End----------");
|
||||
|
||||
}
|
||||
else if (input.action == "UNLOAD")
|
||||
{
|
||||
Logger.Information("----------UnLoad Begin----------");
|
||||
|
||||
TaskCompleUpInput taskCompleUpInput = new()
|
||||
{
|
||||
disTaskIds = disTasks.Select(x => x.id).ToList()
|
||||
@@ -343,6 +349,7 @@ namespace Tnb.WarehouseMgr
|
||||
Logger.Information($"taskCompleUpInput json parameter:{JsonConvert.SerializeObject(taskCompleUpInput)}");
|
||||
await _wareHouseService.TaskComplate(taskCompleUpInput);
|
||||
|
||||
Logger.Information("----------UnLoad end----------");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user