增加分页
This commit is contained in:
@@ -141,14 +141,14 @@ public class ReportFlowController : BaseController
|
||||
|
||||
//TODO 输入姓名拼音,查询此人今日报工记录
|
||||
[HttpGet("get_report_info_by_name")]
|
||||
public IActionResult GetReportInfoByName(string name)
|
||||
public IActionResult GetReportInfoByName([FromQuery] ProReportWorkDto2 query )
|
||||
{
|
||||
if (string.IsNullOrEmpty(name))
|
||||
if (string.IsNullOrEmpty(query.name))
|
||||
{
|
||||
throw new CustomException("name is null");
|
||||
|
||||
}
|
||||
var response= _reportFlowService.GetReportInfoByName(name);
|
||||
var response= _reportFlowService.GetReportInfoByName(query);
|
||||
return SUCCESS(response);
|
||||
|
||||
}
|
||||
@@ -169,12 +169,12 @@ public class ReportFlowController : BaseController
|
||||
|
||||
//TODO 输入工序id 查询今天报工记录
|
||||
[HttpGet("get_report_by_processid")]
|
||||
public IActionResult GetReportByProcessId(int processId)
|
||||
public IActionResult GetReportByProcessId([FromQuery] ProReportWorkDto3 query)
|
||||
{
|
||||
if (processId <= 0) {
|
||||
if (query.processId <= 0) {
|
||||
throw new CustomException("processId is error");
|
||||
}
|
||||
var response = _reportFlowService.GetReportByProcessId(processId);
|
||||
var response = _reportFlowService.GetReportByProcessId(query);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user