AA
zyf
2024-09-06 06a580cf7d74ac5a0bfc05fc55ad5538d8ce6b2a
MESApplication/Controllers/WomdaaController.cs
@@ -1,4 +1,5 @@
using System.Dynamic;
using MES.Service.Dto.service;
using MES.Service.Modes;
using MES.Service.service;
using MES.Service.util;
@@ -11,15 +12,20 @@
public class WomdaaController : ControllerBase
{
    private readonly WomdaaManager m = new();
    //TestUpdate
    [HttpPost("TestUpdate")]
    public ResponseResult TestUpdate([FromBody] Womdaa data)
    #region 生产领料
    //GetProductionPickDaa001
    /// <summary>
    ///     模糊查询工单号并返回
    /// </summary>
    /// <returns></returns>
    [HttpPost("GetProductionPickDaa001")]
    public ResponseResult GetProductionPickDaa001(WarehouseQuery query)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.TestUpdate(data);
            resultInfos.tbBillList = m.GetProductionPickDaa001(query);
            return new ResponseResult
            {
                status = 0,
@@ -32,7 +38,32 @@
            return ResponseResult.ResponseError(ex);
        }
    }
    //GetItemsByDaa001
    /// <summary>
    ///     根据工单号获取代领物料明细
    /// </summary>
    /// <returns></returns>
    [HttpPost("GetItemsByDaa001")]
    public ResponseResult GetItemsByDaa001(WarehouseQuery query)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.GetItemsByDaa001(query);
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
    /// <summary>
    ///     获取所有
    /// </summary>
@@ -177,4 +208,5 @@
            return ResponseResult.ResponseError(ex);
        }
    }
    #endregion
}