野心家
2025-05-24 62b68627fc86bbc0705f3c14d19e18b7eacc0059
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
package com.zy.asrs.utils;
 
import java.util.ArrayList;
 
public class BarcodeUtils {
 
    public static final ArrayList<Integer> staNos1 = new ArrayList<Integer>() {{
        add(1001);add(1002);add(1003);add(1004);add(1005);add(1006);add(1007);
        add(1008);add(1009);add(1010);add(1011);add(1012);add(1013);add(1014);add(1015);
        add(1016);add(1017);add(1018);add(1019);add(1020);add(1021);add(1022);add(1023);
    }};
 
    public static final ArrayList<Integer> staNos2 = new ArrayList<Integer>() {{
        add(1001);add(1002);add(1003);add(1004);add(1005);add(1006);add(1007);
        add(1008);add(1009);add(1010);add(1011);add(1012);add(1013);add(1014);add(1015);
        add(1016);add(1017);add(1018);add(1019);add(1020);add(1021);add(1022);add(1023);
    }};
 
    public static Integer getStaNo(Integer staNo) {
        switch (staNo){
            case 1021:
                return 1020;
            case 1012:
                return 1014;
            case 1005:
                return 1004;
            default:
                return staNo;
        }
    }
    public static Integer getStartStaNo(String staNo) {
        switch (staNo){
            case "1021":
                return 1020;
            case "1012":
                return 1014;
            case "1005":
                return 1004;
            default:
                return Integer.getInteger(staNo);
        }
    }
    public static Integer getOutStaNo(String staNo) {
        switch (staNo){
            case "1021":
                return 1020;
            case "1012":
                return 1009;
            case "1005":
                return 1004;
            default:
                return Integer.parseInt(staNo);
        }
    }
}