| | |
| | | } |
| | | |
| | | @Override |
| | | public List<BsOrderScheduling> selectBsOrderSchedulingListForNum() { |
| | | LocalDate today = LocalDate.now(); |
| | | LocalDate localDate = today.plusDays(1); |
| | | String queryDate = today.toString(); |
| | | String addQueryDate = localDate.toString(); |
| | | return bsOrderSchedulingMapper.selectBsOrderSchedulingListForNum(queryDate,addQueryDate); |
| | | } |
| | | |
| | | @Override |
| | | public List<BsOrderScheduling> selectBsOrderSchedulingPage(BsOrderScheduling bsOrderScheduling) |
| | | { |
| | | if(bsOrderScheduling.getDateConditions()!=null){ |
| | |
| | | List<DaPassingStationCollection> collect5 = new ArrayList<>(); |
| | | if (CollUtil.isNotEmpty(engineNoList)){ |
| | | allChildList = daParamCollectionMapper.getListBySfcCode(engineNoList); |
| | | collect5 = daPassingStationCollectionMapper.getListBySfcCode(engineNoList); |
| | | List<DaPassingStationCollection> tempCollect = daPassingStationCollectionMapper.getListBySfcCode(engineNoList); |
| | | if (engineNoList.size()>1){ |
| | | List<DaPassingStationCollection> outCollect = new ArrayList<>(); |
| | | engineNoList.forEach(engineNo -> { |
| | | List<DaPassingStationCollection> collect = tempCollect.stream().filter(x -> engineNo.equals(x.getSfcCode())).collect(Collectors.toList()); |
| | | outCollect.addAll(collect); |
| | | }); |
| | | collect5 = outCollect; |
| | | } else { |
| | | collect5 = tempCollect; |
| | | } |
| | | } |
| | | if (CollUtil.isNotEmpty(allChildList)){ |
| | | //拿到所有子数据 |
| | | List<DaParamCollection> collect1 = allChildList.stream().filter(x -> Constants.DATA1.equals(x.getType())).collect(Collectors.toList()); |
| | | List<DaParamCollection> collect2 = allChildList.stream().filter(x -> Constants.DATA2.equals(x.getType())).collect(Collectors.toList()); |
| | | // List<DaParamCollection> collect2 = allChildList.stream().filter(x -> Constants.DATA2.equals(x.getType())).collect(Collectors.toList()); |
| | | List<DaParamCollection> collect3 = allChildList.stream().filter(x -> Constants.DATA3.equals(x.getType())).collect(Collectors.toList()); |
| | | List<DaParamCollection> collect4 = allChildList.stream().filter(x -> Constants.DATA4.equals(x.getType())).collect(Collectors.toList()); |
| | | vo.setList1(collect1); |
| | | vo.setList2(collect2); |
| | | // vo.setList2(collect2); |
| | | vo.setList3(collect3); |
| | | vo.setList4(collect4); |
| | | } |