扫码校验判断标签是否与当前工单匹配 0 不匹配 1匹配

This commit is contained in:
qianhao.xu 2024-09-19 14:33:52 +08:00
parent be744dafcf
commit 337173fa2d
4 changed files with 29 additions and 2 deletions

View File

@ -134,6 +134,21 @@ namespace DOAN.WebApi.Controllers.JobKanban
return SUCCESS(response);
}
//TODO 扫码校验判断标签是否与当前工单匹配 0 不匹配 1匹配
[HttpGet("label_workorder_match")]
public IActionResult LabelWorkOrderMatch(string LabelContext,string workOrder)
{
if(string.IsNullOrEmpty(LabelContext)||string.IsNullOrEmpty(workOrder))
{
return SUCCESS(null);
}
int response = workorderProgressService.LabelWorkOrderMatch( LabelContext, workOrder);
return SUCCESS(response);
}
}

View File

@ -112,8 +112,6 @@ namespace DOAN.Model.MES.product.Dto
/// </summary>
public DateTime? WorkorderDate { get; set; }
/// <summary>
/// 优先级 1-100
/// </summary>

View File

@ -29,5 +29,8 @@ namespace DOAN.Service.JobKanban.IService
int FinishWorkOrder(string workorder);
ProWorkorder GetProductingWorkorder(string group_code, string line_code, DateTime handleDate);
int LabelWorkOrderMatch(string LabelContext, string workOrder);
}
}

View File

@ -183,6 +183,17 @@ namespace DOAN.Service.JobKanban
}
public int LabelWorkOrderMatch(string LabelContext, string workOrder)
{
return Context.Updateable<ProLabelTraceLog>()
.Where(it=>it.Workorder == workOrder)
.Where(it=>it.LabelContext == LabelContext)
.SetColumns(it=>it.Status==1)
.ExecuteCommand();
}
}
}