qinchulong
3 天以前 dc467182bfaeeb0dfd9bc2d6c4ec8fe64b179446
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
41
42
43
44
45
46
using LogLibrary.Log;
using Masuit.Tools;
using Newtonsoft.Json;
using WIDESEA_Common.FangCang;
using WIDESEA_Core;
using WIDESEA_DTO;
using WIDESEA_Model.Models;
 
namespace WIDESEA_StoragIntegrationServices
{
    public partial class ToMESService
    {
        /// <summary>
        /// 产品同步接口
        /// </summary>
        /// <param name="jsondata"></param>
        /// <returns></returns>
        public WebResponseContent productSynchronous(object jsondata)
        {
            WebResponseContent content = new WebResponseContent();
            try
            {
                if (string.IsNullOrEmpty(jsondata.ToString())) throw new Exception("上传参数为空");
 
 
                var result = JsonConvert.DeserializeObject<productSynchronous>(jsondata.ToString());
 
                //todo 完成物料同步
 
 
 
                LogFactory.GetLog("产品同步接口").Info(true, $"\r\r--------------------------------------");
                LogFactory.GetLog("产品同步接口").Info(true, jsondata.ToJsonString());
 
                return content;
 
            }
            catch (Exception ex)
            {
                LogFactory.GetLog("产品同步接口").Info(true, $"\r\r--------------------------------------");
                LogFactory.GetLog("产品同步接口").Info(true, ex.Message);
                return content.Error($"产品同步接口请求异常:{ex.Message}");
            }
        }
    }
}