油漆实验室,批量变动,定时任务变动

This commit is contained in:
2025-03-19 13:13:40 +08:00
parent 0e4d7e11d2
commit 9b1c8b2b5a
9 changed files with 104 additions and 19 deletions

View File

@@ -50,6 +50,28 @@ namespace ZR.Admin.WebApi.Controllers.mes.ql
return ToResponse(new ApiResult(200, "success", ret));
}
/// <summary>
/// 根据工单自动生成批处理记录
/// </summary>
/// <param name="actionDate">执行时间</param>
/// <returns></returns>
[HttpGet("AddBatchListByWorkOrder")]
public IActionResult AddBatchListByWorkOrder(DateTime actionDate)
{
try
{
int ret = plBatchService.CreatePLBatchRecordsByWorkOrder(actionDate);
return ToResponse(new ApiResult(200, "success", ret));
}
catch (Exception e)
{
return ToResponse(new ApiResult(500, "error", e.Message));
throw;
}
}
/// <summary>
/// 删除测试数据记录
/// </summary>
@@ -89,6 +111,7 @@ namespace ZR.Admin.WebApi.Controllers.mes.ql
PLBatch pLBatch = new PLBatch();
pLBatch.Id = pLBatchDto.Id;
pLBatch.IdGroup = pLBatchDto.plIdGroup;
pLBatch.Workorder = pLBatchDto.Workorder;
pLBatch.Description = pLBatchDto.Description;
pLBatch.Code = pLBatchDto.plCode;
pLBatch.Dt = pLBatchDto.plDt;