package com.zy.asrs.wcs.core.utils; import com.zy.asrs.wcs.core.model.enums.WorkZoneType; import com.zy.asrs.wcs.rcs.cache.SlaveConnection; import com.zy.asrs.wcs.rcs.model.enums.SlaveType; import com.zy.asrs.wcs.rcs.thread.LiftThread; import org.springframework.stereotype.Service; /** * Created by vincent on 2023/10/16 */ @Service public class LiftDispatcher { public LiftThread queryLiftForTransport(String staNo) { WorkZoneType zoneType = WorkZoneType.query(staNo); LiftThread liftThread = (LiftThread) SlaveConnection.get(SlaveType.Lift, zoneType.liftNo); return liftThread; } }