2023-11-6

This commit is contained in:
xiaowei.song 2023-11-16 18:33:43 +08:00
parent adaf5b8013
commit 519a43d8d7
2 changed files with 16 additions and 7 deletions

View File

@ -7,6 +7,7 @@ using System.Text.Json;
using ZR.Admin.WebApi.Extensions;
using ZR.Model.mes.md;
using ZR.Model.mes.pro;
using ZR.Model.MES.pro.DTO;
using ZR.Service.mes.pro;
using ZR.Service.mes.pro.IService;
using ZR.Service.MES.md;
@ -103,7 +104,7 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro
/// <param name="parameter"></param>
/// <returns></returns>
[HttpPost("sortschedule")]
public IActionResult SortSchedule([FromBody] List<t> parameter)
public IActionResult SortSchedule([FromBody] List<ProWorkorderSortDTO> parameter)
{
//JsonElement t = (JsonElement)parameter;
@ -123,10 +124,4 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro
return ToResponse(new ApiResult(200, "success", 1));
}
}
public class t
{
public string id { get; set; }
public int order { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ZR.Model.MES.pro.DTO
{
public class ProWorkorderSortDTO
{
public string id { get; set; }
public int order { get; set; }
}
}