触摸屏修改
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using DOAN.Service.Mobile.IService;
|
||||
using Infrastructure.Converter;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace DOAN.Admin.WebApi.Controllers.Mobile;
|
||||
@@ -17,6 +18,28 @@ public class ReportFlowController : BaseController
|
||||
{
|
||||
_reportFlowService = reportFlowService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据指定日期获取工单列表
|
||||
/// </summary>
|
||||
/// <param name="startDate"></param>
|
||||
/// <param name="endDate"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="CustomException"></exception>
|
||||
|
||||
[HttpGet("get_workorders_by_date")]
|
||||
public IActionResult GetWorkOrdersByDate(DateTime startDate, DateTime endDate)
|
||||
{
|
||||
startDate = DOANConvertDate.ConvertLocalDate(startDate);
|
||||
endDate = DOANConvertDate.ConvertLocalDate(endDate);
|
||||
if(startDate == DateTime.MinValue||endDate==DateTime.MinValue)
|
||||
{
|
||||
throw new CustomException("date is error");
|
||||
}
|
||||
var response = _reportFlowService.GetWorkOrdersByDate(startDate, endDate);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//TODO 查询工单详情
|
||||
/// <summary>
|
||||
@@ -110,6 +133,46 @@ public class ReportFlowController : BaseController
|
||||
|
||||
return SUCCESS(_reportFlowService.GetWorkOrderReportWorkList(workorder));
|
||||
}
|
||||
|
||||
|
||||
//TODO 输入姓名拼音,查询此人今日报工记录
|
||||
[HttpGet("get_report_info_by_name")]
|
||||
public IActionResult GetReportInfoByName(string name)
|
||||
{
|
||||
if (string.IsNullOrEmpty(name))
|
||||
{
|
||||
throw new CustomException("name is null");
|
||||
|
||||
}
|
||||
var response= _reportFlowService.GetReportInfoByName(name);
|
||||
return SUCCESS(response);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//TODO 根据工艺路线获取所有工序
|
||||
[HttpGet("get_process_by_route")]
|
||||
public IActionResult GetProcessByRoute(int route_id=32)
|
||||
{
|
||||
var response = _reportFlowService.GetProcessByRoute(route_id);
|
||||
return SUCCESS(response);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//TODO 输入工序id 查询今天报工记录
|
||||
[HttpGet("get_report_by_processid")]
|
||||
public IActionResult GetReportByProcessId(int processId)
|
||||
{
|
||||
if (processId <= 0) {
|
||||
throw new CustomException("processId is error");
|
||||
}
|
||||
var response = _reportFlowService.GetReportByProcessId(processId);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user