过滤掉不需要掉erp接口的自制单据

This commit is contained in:
2024-09-30 10:38:46 +08:00
parent 884c23b753
commit 50a95ac88f
8 changed files with 174 additions and 118 deletions

View File

@@ -9,7 +9,11 @@ namespace Tnb.ProductionMgr.Entities.Dto
public string eqp_id { get; set; }
public string mo_task_status { get; set; }
public decimal? plan_qty { get; set; }
public decimal? rqty { get; set; }
/// <summary>
/// 已报工数量
/// </summary>
public decimal? reported_work_qty { get; set; } = 0;
public decimal? scrap_qty { get; set; }
public decimal? scheduled_qty { get; set; }
public string create_time { get; set; }
public string workstation_id { get; set; }

View File

@@ -130,7 +130,8 @@ namespace Tnb.ProductionMgr
dayshiftafter_worker_id = a.dayshiftafter_worker_id,
nightshift_worker_id = a.nightshift_worker_id,
nightshiftafter_worker_id = a.nightshiftafter_worker_id,
rqty = a.scrap_qty
reported_work_qty = a.reported_work_qty,
scrap_qty = a.scrap_qty
}).OrderByDescending(a => a.create_time).ToPagedListAsync(input.currentPage, input.pageSize);
List<string> userIdList = result.list.Select(x => x.dayshift_worker_id).Distinct().ToList();