刘磊
2024-11-23 1c71308504530e589b753f18862a3f99149229dc
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
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core;
using WIDESEA_DTO;
 
namespace WIDESEA_StoragIntegrationServices
{
    public partial class MCSService
    {
        /// <summary>
        /// 请求移库
        /// </summary>
        /// <param name="json"></param>
        /// <returns></returns>
        public WebResponseContent RequestChangeLocation(object json)
        {
            WebResponseContent content = new WebResponseContent();
            try
            {
                if (string.IsNullOrEmpty(json.ToString())) throw new Exception("上传参数为空");
 
                var result = JsonConvert.DeserializeObject<RequestReMove>(json.ToString());
                ;
                if (result.MoveType == 5) Console.WriteLine($"分容检测柜火警触发:库位{result.LocationID}");
 
 
                LogFactory.GetLog("分容移库申请").Info(true, $"\r\r--------------------------------------");
                LogFactory.GetLog("分容移库申请").Info(true, result);
                return content.OK();
            }
            catch (Exception ex)
            {
                return content.Error(ex.Message);
            }
        }
    }
}