| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.zy.asrs.framework.common.Cools; |
| | | import com.zy.asrs.wcs.core.entity.BasConveyorSta; |
| | | import com.zy.asrs.wcs.core.entity.BasShuttle; |
| | | import com.zy.asrs.wcs.core.map.entity.MapWsShuttleVo; |
| | | import com.zy.asrs.wcs.core.map.entity.MapWsVo; |
| | | import com.zy.asrs.wcs.core.model.NavigateNode; |
| | | import com.zy.asrs.wcs.core.model.enums.DeviceCtgType; |
| | | import com.zy.asrs.wcs.core.service.BasConveyorStaService; |
| | | import com.zy.asrs.wcs.core.service.BasShuttleService; |
| | | import com.zy.asrs.wcs.core.utils.NavigateMapUtils; |
| | | import com.zy.asrs.wcs.core.utils.Utils; |
| | |
| | | private DictService dictService; |
| | | @Autowired |
| | | private NavigateMapUtils navigateMapUtils; |
| | | @Autowired |
| | | private BasConveyorStaService basConveyorStaService; |
| | | |
| | | @Scheduled(cron = "0/1 * * * * ? ") |
| | | public void sync() { |
| | |
| | | // shuttle |
| | | wsVo.setShuttleVos(syncShuttle()); |
| | | wsVo.setLockPath(getMapLocPath()); |
| | | wsVo.setConveyorSta(getMapConveyorSta()); |
| | | MapWebSocket.broadcast(JSON.toJSONString(wsVo)); |
| | | } |
| | | |
| | |
| | | return navigateNodes; |
| | | } |
| | | |
| | | private List<BasConveyorSta> getMapConveyorSta() { |
| | | return basConveyorStaService.list(); |
| | | } |
| | | |
| | | } |