| | |
| | | package com.zy.core.dispatcher; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.core.common.Cools; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.domain.ShuttleGatherResult; |
| | | import com.zy.asrs.domain.param.ShuttleGatherParam; |
| | | import com.zy.asrs.entity.BasShuttle; |
| | | import com.zy.asrs.entity.WrkMast; |
| | | import com.zy.asrs.service.BasShuttleService; |
| | |
| | | /** |
| | | * 小车集合 |
| | | */ |
| | | public List<ShuttleGatherResult> shuttleGather() { |
| | | List<BasShuttle> basShuttles = basShuttleService.selectList(new EntityWrapper<BasShuttle>().eq("status", 1)); |
| | | public List<ShuttleGatherResult> shuttleGather(ShuttleGatherParam param) { |
| | | Wrapper<BasShuttle> wrapper = new EntityWrapper<BasShuttle>().eq("status", 1); |
| | | if (param != null) { |
| | | if (!param.getShuttleNos().isEmpty()) { |
| | | wrapper.in("shuttle_no", param.getShuttleNos()); |
| | | } |
| | | } |
| | | |
| | | List<BasShuttle> basShuttles = basShuttleService.selectList(wrapper); |
| | | List<ShuttleGatherResult> list = new ArrayList<>(); |
| | | for (BasShuttle basShuttle : basShuttles) { |
| | | String idleLoc = basShuttle.getIdleLoc(); |