油漆实验室,批量变动,定时任务变动
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user