优化接口

This commit is contained in:
tongfei
2024-04-01 16:03:29 +08:00
parent 5d20813a8a
commit c459d35486
3 changed files with 12 additions and 8 deletions

View File

@@ -260,13 +260,9 @@ namespace WMS.Web.Repositories
/// </summary>
/// <param name="taskId"></param>
/// <returns></returns>
public async Task<List<ReceiveBoxResponse>> GetInstockBox(int taskId)
public async Task<List<int>> GetInstockBox(int taskId)
{
return await _context.InStockDetails.Where(x => x.TaskId == taskId).Select(x => new ReceiveBoxResponse()
{
TaskId = x.TaskId,
BoxId = x.BoxId
}).ToListAsync();
return await _context.InStockDetails.Where(x => x.TaskId == taskId).Select(x => x.BoxId).ToListAsync();
}
/// <summary>