查询工序报工详情
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user