ECSOpenApiController.cs 1.16 KB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using HHECS.Model;

namespace HHECS.API.Controllers
{
    /// <summary>
    /// 用于对外提供接口
    /// </summary>
    public class ECSOpenApiController : ApiController
    {
        ///// <summary>
        ///// 用于接收空瓶发料请求
        ///// </summary>
        ///// <param name="part"></param>
        ///// <returns></returns>
        //[HttpPost]
        //public BllResult PartTransfer(Part part)
        //{
        //    //复制初始锁定数量
        //    part.ActualQty = part.LockQty;
        //    part.GeneralSource = (int)GeneralSourceType.接口同步;
        //    part.CreatedBy = "interface";
        //    part.Created = DateTime.Now;
        //    var result = AppSession.Bll.SaveCommonModel<Part>(part);
        //    if (result.Success)
        //    {
        //        return BllResultFactory.Sucess("接收数据成功");
        //    }
        //    else
        //    {
        //        return BllResultFactory.Error($"接收数据失败:{result.Msg}");
        //    }
        //}
    }
}