获取工单下的报工列表
This commit is contained in:
@@ -46,13 +46,13 @@ public class ReportFlowController : BaseController
|
||||
/// <returns></returns>
|
||||
/// <exception cref="CustomException"></exception>
|
||||
[HttpGet("get_process_reportwork_detail")]
|
||||
public IActionResult GetProcessReportWorkDetail(string workorder, string process)
|
||||
public IActionResult GetProcessReportWorkDetail(string workorder, int processId)
|
||||
{
|
||||
if (string.IsNullOrEmpty(workorder) || string.IsNullOrEmpty(process))
|
||||
if (string.IsNullOrEmpty(workorder))
|
||||
{
|
||||
throw new CustomException("workorder or process is null");
|
||||
}
|
||||
return SUCCESS(_reportFlowService.GetProcessReportWorkDetail(workorder, process));
|
||||
return SUCCESS(_reportFlowService.GetProcessReportWorkDetail(workorder, processId));
|
||||
}
|
||||
|
||||
//TODO 工序报工
|
||||
@@ -66,14 +66,14 @@ public class ReportFlowController : BaseController
|
||||
/// <returns></returns>
|
||||
/// <exception cref="CustomException"></exception>
|
||||
[HttpGet("process_reportwork")]
|
||||
public IActionResult ProcessReportWork(string workorder, string process, int finish_num,int bad_num)
|
||||
public IActionResult ProcessReportWork(string workorder, int processId, int finish_num,int bad_num)
|
||||
{
|
||||
if (string.IsNullOrEmpty(workorder) || string.IsNullOrEmpty(process))
|
||||
if (string.IsNullOrEmpty(workorder))
|
||||
{
|
||||
throw new CustomException("workorder or process is null");
|
||||
}
|
||||
|
||||
return SUCCESS(_reportFlowService.ProcessReportWork(workorder, process, finish_num,bad_num,HttpContext.GetNickName()));
|
||||
return SUCCESS(_reportFlowService.ProcessReportWork(workorder, processId, finish_num,bad_num,HttpContext.GetNickName()));
|
||||
}
|
||||
|
||||
//TODO 获取工单下的报工列表
|
||||
@@ -88,6 +88,9 @@ public class ReportFlowController : BaseController
|
||||
return SUCCESS(_reportFlowService.GetWorkOrderReportWorkList(workorder));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user