| | |
| | | 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 (Cools.isEmpty(param)) { |
| | | return; |
| | | } |
| | | List<TaskDto> taskList = param.getTaskList(); |
| | | List<TaskDto> taskList = param.getTasks(); |
| | | if (Cools.isEmpty(taskList)) { |
| | | return; |
| | | } |
| | |
| | | Set<String> oriLocNoSet = new HashSet<>(); |
| | | Set<String> destStaNoSet = new HashSet<>(); |
| | | Set<String> destLocNoSet = new HashSet<>(); |
| | | for (TaskDto dto : param.getTaskList()) { |
| | | for (TaskDto dto : param.getTasks()) { |
| | | if (!Cools.isEmpty(dto.getOriSta()) && !Cools.isEmpty(dto.getOriLoc())) { |
| | | return "OriSta and OriLoc cannot exist at the same time!"; |
| | | } |