长度不是36个字符
This commit is contained in:
parent
2b06446551
commit
30678651ec
@ -157,7 +157,7 @@ public class WorkOrderProgressController : BaseController
|
||||
/// </summary>
|
||||
/// <param name="workorder"></param>
|
||||
/// <param name="labelContext"></param>
|
||||
/// <returns> -1 此产品不属于此工单 0 报工失败 1 成功报工 </returns>
|
||||
/// <returns> -1 此产品不属于此工单 -2 长度不是36个字符 0 报工失败 1 成功报工 </returns>
|
||||
/// <exception cref="CustomException"></exception>
|
||||
[HttpGet("errorProofingAndReportingWork")]
|
||||
public IActionResult ErrorProofingAndReportingWork(string workorder, string labelContext)
|
||||
|
||||
@ -205,6 +205,11 @@ public class WorkorderProgressService : BaseService<ProWorkorder>, IWorkorderPro
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
// 增加标签长度判断 36个字符
|
||||
if (labelContext.Length != 36)
|
||||
{
|
||||
return -2;
|
||||
}
|
||||
|
||||
// 记录条码
|
||||
var detail = new ProReportworkDetail();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user