| | |
| | | |
| | | import com.zy.core.model.protocol.CrnErrProtocol; |
| | | import com.zy.core.model.protocol.RgvErrProtocol; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import java.util.concurrent.ConcurrentHashMap; |
| | | |
| | | /** |
| | | * Created by IX on 2025/02/21 |
| | | */ |
| | | @Slf4j |
| | | public class CrnErrCache { |
| | | // 本地缓存,键为 currentPosition,值为 DeviceStatus |
| | | private static final ConcurrentHashMap<Integer, CrnErrProtocol> cache = new ConcurrentHashMap<>(); |
| | |
| | | crnErrProtocol.setError(error); |
| | | cache.put(crnErrProtocol.getCrnNo(), crnErrProtocol); |
| | | } |
| | | } catch (Exception e){ |
| | | log.error("更新堆垛机设备状态:"+e.getMessage()); |
| | | } finally { |
| | | } |
| | | } |