查询工序报工详情

This commit is contained in:
qianhao.xu
2024-12-03 19:39:52 +08:00
parent fef6863e8d
commit 12e17bd651
4 changed files with 75 additions and 2 deletions

View File

@@ -26,6 +26,29 @@ public class ReportFlowController : BaseController
throw new CustomException("workOrderId 是空");
return SUCCESS(_reportFlowService.GetWorkOrderDetail(workOrder));
}
//TODO 查询工序报工详情
[HttpGet("get_process_reportwork_detail")]
public IActionResult GetProcessReportWorkDetail(string workorder, string process)
{
if (string.IsNullOrEmpty(workorder) || string.IsNullOrEmpty(process))
{
throw new CustomException("workorder or process is null");
}
return SUCCESS(_reportFlowService.GetProcessReportWorkDetail(workorder, process));
}
//TODO 工序报工
[HttpGet("process_reportwork")]
public IActionResult ProcessReportWork(string workorder, string process, int finish_num,int bad_num)
{
if (string.IsNullOrEmpty(workorder) || string.IsNullOrEmpty(process))
{
throw new CustomException("workorder or process is null");
}
return SUCCESS(_reportFlowService.ProcessReportWork(workorder, process, finish_num,bad_num,HttpContext.GetNickName()));
}
}