GP12触摸屏代码重构
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user