扫码校验判断标签是否与当前工单匹配 0 不匹配 1匹配
This commit is contained in:
parent
be744dafcf
commit
337173fa2d
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -112,8 +112,6 @@ namespace DOAN.Model.MES.product.Dto
|
||||
/// </summary>
|
||||
public DateTime? WorkorderDate { get; set; }
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 优先级 1-100
|
||||
/// </summary>
|
||||
|
||||
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user