自动化立体仓库 - WMS系统
#
1
21 小时以前 53f87c2ff10f7ab71d6b0340a5a4811089d7cd1e
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
package com.zy.asrs.entity.param;
 
import lombok.Data;
 
import java.util.ArrayList;
import java.util.List;
 
@Data
public class AgvGoTheArnParam {
    String reqCode; //任务号
    String reqTime; //
    String currentPositionCode; //  位置
    String method; //
    String robotCode; //
    String taskCode; //
 
    public List<ArmAgvGratingParam> getArmNo() {
        List<ArmAgvGratingParam> armList = new ArrayList<>();
        if (this.currentPositionCode == null) return armList;
        switch (this.currentPositionCode) {
            case "028370CC015200":
            case "029870CC015200":
            case "3100101":
            case "3100201":
                ArmAgvGratingParam armAgvGratingParam1 = new ArmAgvGratingParam();
                armAgvGratingParam1.setArmNo(5);
                armAgvGratingParam1.setChannel("A1");
                armList.add(armAgvGratingParam1);
                return armList;
            case "028440CC024257":
            case "029940CC024257":
            case "3000101":
            case "3000201":
            case "2900101":
            case "2900201":
                ArmAgvGratingParam armAgvGratingParam2 = new ArmAgvGratingParam();
                armAgvGratingParam2.setArmNo(5);
                armAgvGratingParam2.setChannel("A2");
                armList.add(armAgvGratingParam2);
                ArmAgvGratingParam armAgvGratingParam3 = new ArmAgvGratingParam();
                armAgvGratingParam3.setArmNo(6);
                armAgvGratingParam3.setChannel("A1");
                armList.add(armAgvGratingParam3);
                return armList;
            case "028440CC031993":
            case "029940CC031993":
            case "2800101":
            case "2800201":
                ArmAgvGratingParam armAgvGratingParam4 = new ArmAgvGratingParam();
                armAgvGratingParam4.setArmNo(6);
                armAgvGratingParam4.setChannel("A2");
                armList.add(armAgvGratingParam4);
                return armList;
            default:
                return armList;
        }
    }
 
}