Merge branch 'main' of 192.168.0.36:doan/mes

This commit is contained in:
xiaowei.song
2023-11-23 08:31:26 +08:00
3 changed files with 26 additions and 14 deletions

View File

@@ -69,18 +69,11 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro
/// <param name="arrange_endtime">预计结束时间</param>
/// <returns></returns>
[HttpGet("setschedule")]
public IActionResult SetSchedule(string id, string arrange_starttime, string arrange_endtime)
public IActionResult SetSchedule(string id, DateTime arrange_starttime, DateTime arrange_endtime)
{
DateTime bgDateTime = DateTime.Now;
DateTime edDateTime = DateTime.Now;
try
{
bgDateTime = Convert.ToDateTime(arrange_starttime);
edDateTime = Convert.ToDateTime(arrange_endtime);
}
catch { }
int data = proWorkorderService.SetWorkorderSechedule(id, bgDateTime, edDateTime);
int data = proWorkorderService.SetWorkorderSechedule(id, arrange_starttime, arrange_endtime);
return ToResponse(new ApiResult(200, "success", data));
}
@@ -90,7 +83,7 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro
/// </summary>
/// <param name="id">工单ID</param>
/// <returns></returns>
[HttpGet("resetschedule")]
[HttpGet("resetschedule/{id}")]
public IActionResult ResetSchedule(string id)
{