/print_api

This commit is contained in:
qianhao.xu 2025-04-06 13:45:08 +08:00
parent 07bb367ec4
commit 3097f76a98

View File

@ -22,11 +22,6 @@ namespace linesider_screen_bankend.Controller
_logAction = logAction;
}
//TODO 查询工单详情
/// <summary>
/// 查询工单详情
/// </summary>
/// <returns></returns>
[Route(HttpVerbs.Get, "/hello")]
public string GetHello()
{
@ -35,13 +30,14 @@ namespace linesider_screen_bankend.Controller
}
//TODO 出一箱产品标签和一个外箱标签
[Route(HttpVerbs.Get, "/print_label")]
[Route(HttpVerbs.Get, "/print_api/print_label")]
public async Task PrintLabel()
{
// 获取所有查询参数
var queryParams = HttpContext.Request.QueryString;
// 获取特定参数
string workorder = queryParams["workorder"];
string TankCapacity = queryParams["tank_capacity"];
_logAction?.Invoke($"GET /api/print_label from {HttpContext.RemoteEndPoint},query form {workorder}");
try
{
@ -94,13 +90,14 @@ namespace linesider_screen_bankend.Controller
}
//TODO 补打外箱大标签
[Route(HttpVerbs.Get, "/supplement_print_package_label")]
[Route(HttpVerbs.Get, "/print_api/supplement_print_package_label")]
public async Task SupplementPrintPackageLabel()
{
// 获取所有查询参数
var queryParams = HttpContext.Request.QueryString;
// 获取特定参数
string workorder = queryParams["workorder"];
int LabelNum = int.Parse(queryParams["label_num"]);
_logAction?.Invoke($"GET /api/print_label from {HttpContext.RemoteEndPoint},query form {workorder}");
try
{
@ -153,13 +150,14 @@ namespace linesider_screen_bankend.Controller
}
//TODO 补打产品小标签
[Route(HttpVerbs.Get, "/supplement_print_production_label")]
[Route(HttpVerbs.Get, "/print_api/supplement_print_production_label")]
public async Task SupplementPrintProductionLabel()
{
// 获取所有查询参数
var queryParams = HttpContext.Request.QueryString;
// 获取特定参数
string workorder = queryParams["workorder"];
int LabelNum = int.Parse(queryParams["label_num"]);
_logAction?.Invoke($"GET /api/print_label from {HttpContext.RemoteEndPoint},query form {workorder}");
try
{
@ -213,7 +211,7 @@ namespace linesider_screen_bankend.Controller
//TODO 工单扫码装箱条码详情
[Route(HttpVerbs.Get, "/workorder_scan_box_code_info")]
[Route(HttpVerbs.Get, "/print_api/workorder_scan_box_code_info")]
public async Task workorder_scan_box_code_info()
{
// 获取所有查询参数