| | |
| | | import com.zy.acs.framework.common.BaseRes; |
| | | import com.zy.acs.framework.common.Cools; |
| | | import com.zy.acs.framework.exception.CoolException; |
| | | import com.zy.acs.manager.common.constant.Constants; |
| | | import com.zy.acs.manager.common.domain.TaskDto; |
| | | import com.zy.acs.manager.core.integrate.dto.OpenBusSubmitParam; |
| | | import com.zy.acs.manager.manager.entity.Bus; |
| | |
| | | private LocService locService; |
| | | |
| | | @Override |
| | | public Bus selectByBusNo(String busNo) { |
| | | if (Cools.isEmpty(busNo)) { |
| | | return null; |
| | | } |
| | | return this.getOne(new LambdaQueryWrapper<Bus>().eq(Bus::getBusNo, busNo).last(Constants.LIMIT_ONE)); |
| | | } |
| | | |
| | | @Override |
| | | public Bus selectByUuid(String uuid) { |
| | | return this.getOne(new LambdaQueryWrapper<Bus>().eq(Bus::getUuid, uuid)); |
| | | } |
| | |
| | | if (dto.getPriority() == 9527) { |
| | | if (Cools.isEmpty(dto.getDestLoc())) { |
| | | List<Loc> locList = locService.list(new LambdaQueryWrapper<Loc>() |
| | | .ge(Loc::getRow, 31).eq(Loc::getLocSts, LocStsType.IDLE.val())); |
| | | .ge(Loc::getRowNo, 31).eq(Loc::getLocSts, LocStsType.IDLE.val())); |
| | | if (Cools.isEmpty(locList)) { |
| | | log.error("there is no such idle loc"); |
| | | break; |