WMS相关文件添加,仅添加文件,可启动但未测试

This commit is contained in:
赵正易
2024-03-08 08:28:14 +08:00
parent a0ae0c35b0
commit b400063e1a
83 changed files with 3767 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ using ZR.Admin.WebApi.Filters;
using ZR.Model.MES.pro;
using ZR.Service.mes.pro;
using ZR.Service.mes.pro.IService;
using static System.Runtime.InteropServices.JavaScript.JSType;
namespace ZR.Admin.WebApi.Controllers.mes.pro
{
@@ -276,6 +277,25 @@ namespace ZR.Admin.WebApi.Controllers.mes.pro
return ToResponse(new ApiResult(200, "success", data));
}
/// <summary>
/// 根据工单顺序 排序(排序掉转)
/// </summary>
/// <param name="oldId">初始序号</param>
/// <param name="oldSort">初始排序</param>
/// <param name="newId">放入序号</param>
/// <param name="newSort">放入排序</param>
/// <returns></returns>
[HttpGet("updateSort2")]
public IActionResult UpdateSort2(string oldId, int oldSort, string newId, int newSort)
{
int result = 0;
if (string.IsNullOrEmpty(oldId)&& string.IsNullOrEmpty(newId))
{
return ToResponse(new ApiResult(400, "updateSortError", "排序参数异常"));
}
result = proWorkorderService.UpdateworkorderSort2(oldId, oldSort, newId, newSort);
return ToResponse(new ApiResult(200, "success", result));
}
/// <summary>