增加分页

This commit is contained in:
qianhao.xu
2024-12-23 18:34:58 +08:00
parent 80cbe486fd
commit 9d22ec83eb
4 changed files with 33 additions and 22 deletions

View File

@@ -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);
}