GP12触摸屏代码重构

This commit is contained in:
2025-02-14 17:26:56 +08:00
parent 965f17eecd
commit 96e0986a0e
5 changed files with 175 additions and 3 deletions

View File

@@ -176,5 +176,28 @@ namespace ZR.Admin.WebApi.Controllers
return SUCCESS(response);
}
/// <summary>
/// 自动生成标签记录
/// </summary>
/// <returns></returns>
[HttpPost("GenerateVirtualLabel")]
[AllowAnonymous]
public IActionResult GenerateVirtualLabel([FromBody] QcGp12WorkorderDetailDto parm)
{
try
{
var modal = parm.Adapt<QcGp12WorkorderDetailDto>().ToCreate(HttpContext);
var response = _QcGp12Service.GenerateVirtualLabel(modal);
return SUCCESS(response);
}
catch (Exception ex)
{
return ToResponse(ApiResult.Error(ex.Message));
}
}
}
}