zyf
9 天以前 91489875fc8c9fd2b44c3791ca6f67dcf559675f
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;
@@ -12,14 +13,45 @@
{
    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,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            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,
@@ -177,4 +209,6 @@
            return ResponseResult.ResponseError(ex);
        }
    }
    #endregion
}