ECSOpenApiController.cs
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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}");
// }
//}
}
}