wanshenmean
昨天 5f1294d6dea53d286f5e7029839d37bf490e32bb
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using System.Text.Json.Serialization;
 
namespace WIDESEA_DTO.Task
{
    /// <summary>
    /// 组盘/拆盘操作任务Dto
    /// </summary>
    public class PalletOperationTaskDto
    {
        /// <summary>
        /// 电芯列表(组盘时必传,拆盘时不传)
        /// </summary>
        [JsonPropertyName("cells")]
        public List<PalletCellItem> Cells { get; set; }
 
        /// <summary>
        /// 托盘号
        /// </summary>
        [JsonPropertyName("palletCode")]
        public string PalletCode { get; set; }
 
        /// <summary>
        /// 执行动作:组盘 或 拆盘
        /// </summary>
        [JsonPropertyName("action")]
        public string Action { get; set; }
 
        /// <summary>
        /// 线体编号(作为任务起点地址 sourceAddress)
        /// </summary>
        [JsonPropertyName("lineId")]
        public string LineId { get; set; }
 
        /// <summary>
        /// 机械手名称(用于MES设备配置查询)
        /// </summary>
        [JsonPropertyName("robotName")]
        public string RobotName { get; set; }
 
        /// <summary>
        /// 仓库编号(用于查询 targetAddress 和巷道)
        /// </summary>
        [JsonPropertyName("warehouseCode")]
        public string WarehouseCode { get; set; }
 
        /// <summary>
        /// 优先级,默认1
        /// </summary>
        [JsonPropertyName("grade")]
        public int Grade { get; set; } = 1;
    }
 
    /// <summary>
    /// 电芯项(电芯码+通道号一一对应)
    /// </summary>
    public class PalletCellItem
    {
        /// <summary>
        /// 电芯码
        /// </summary>
        [JsonPropertyName("sfcCode")]
        public string SfcCode { get; set; }
 
        /// <summary>
        /// 通道号
        /// </summary>
        [JsonPropertyName("channel")]
        public string Channel { get; set; }
    }
}