头码车到站先回库
This commit is contained in:
parent
43bc7d04ce
commit
36f9a3beee
@ -44,6 +44,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.util.StringUtils;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
@ -109,7 +110,11 @@ public class CompetitionPracticalService implements ICompetitionPracticalService
|
||||
@Override
|
||||
public PageVO<CompetitionVO> pagedQueryCompetition(CompetitionPagedQueryVO queryVO) {
|
||||
PageHelper.startPage(queryVO.getPageNum(), queryVO.getPageSize());
|
||||
Page<Competition> page = (Page<Competition>) this.competitionDAO.selectByExample(null);
|
||||
CompetitionExample competitionExample = new CompetitionExample();
|
||||
if (StringUtils.hasText(queryVO.getName())) {
|
||||
competitionExample.createCriteria().andNameLike(String.format("%%%s%%", queryVO.getName()));
|
||||
}
|
||||
Page<Competition> page = (Page<Competition>) this.competitionDAO.selectByExample(competitionExample);
|
||||
List<CompetitionVO> list = page.getResult().stream().map(CompetitionVO::new).collect(Collectors.toList());
|
||||
return PageVO.convert(page, list);
|
||||
}
|
||||
|
@ -86,6 +86,8 @@ public class AtsHeadTrainStageService implements AtsStageService {
|
||||
* 处理列车到达目的地
|
||||
*/
|
||||
private void handleArriveDestination(Simulation simulation, TrainInfo trainInfo) {
|
||||
// 先回库,后设置为人工车
|
||||
trainInfo.finishPlanPrepareInbound();
|
||||
if (simulation.getRepository().getConfig().isSetManualWhenHeadTrainArriveTarget()) {
|
||||
atsTrainService.setManualTrain(simulation, trainInfo.getGroupNumber());
|
||||
}
|
||||
|
@ -1,9 +1,15 @@
|
||||
package club.joylink.rtss.vo.client.competition;
|
||||
|
||||
import club.joylink.rtss.vo.client.PageQueryVO;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* 竞赛分页查询
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class CompetitionPagedQueryVO extends PageQueryVO {
|
||||
|
||||
private String name;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user