#
Junjie
2024-04-07 08c96e4b797573fd64b42a52a2f9b9805d59d3e3
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
//package com.zy.asrs.wcs.core.utils;
//
//import com.zy.core.model.DevpSlave;
//import com.zy.core.properties.SlaveProperties;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
///**
// * Created by vincent on 2023/10/20
// */
//@Slf4j
//@Service
//public class ConveyorDispatcher {
//
//    @Autowired
//    private SlaveProperties slaveProperties;
//
//    public DevpSlave queryByInBound(Integer staNo) {
//        for (DevpSlave devpSlave : slaveProperties.getDevp()) {
//            for (DevpSlave.Sta sta : devpSlave.getInSta()) {
//                if (sta.getStaNo().equals(staNo)) {
//                    return devpSlave;
//                }
//            }
//
//        }
//        return null;
//    }
//
//    public DevpSlave queryByOutBound(Integer staNo) {
//        for (DevpSlave devpSlave : slaveProperties.getDevp()) {
//            for (DevpSlave.Sta sta : devpSlave.getOutSta()) {
//                if (sta.getStaNo().equals(staNo)) {
//                    return devpSlave;
//                }
//            }
//
//        }
//        return null;
//    }
//
//
//
//}