| | |
| | | } |
| | | |
| | | /** |
| | | * 查询订单排产 |
| | | * |
| | | * @param sncode 订单排产发动机号 |
| | | * @return 订单排产 |
| | | */ |
| | | @Override |
| | | public BsOrderScheduling selectBsOrderSchedulingSNCode(String sncode) |
| | | { |
| | | return bsOrderSchedulingMapper.selectBsOrderSchedulingSNCode(sncode); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询订单排产列表 |
| | | * |
| | | * @param bsOrderScheduling 订单排产 |
| | |
| | | bsOrderScheduling.setStartTime(s1); |
| | | bsOrderScheduling.setEndTime(s2); |
| | | List<BsOrderScheduling> todayList = bsOrderSchedulingMapper.selectBsOrderSchedulingList(bsOrderScheduling); |
| | | todayList = todayList.stream().filter(x -> ObjectUtil.isNotEmpty(x.getCvtOfflineTime())).collect(Collectors.toList()); |
| | | todayList = todayList.stream().filter(x -> ObjectUtil.isNotEmpty(x.getFinalAssemblyOfflineTime())).collect(Collectors.toList()); |
| | | if (CollUtil.isNotEmpty(todayList)){ |
| | | List<String> allModel = todayList.stream().map(BsOrderScheduling::getModel).distinct().collect(Collectors.toList()); |
| | | Map<String, List<BsOrderScheduling>> collect = new HashMap<>(); |
| | |
| | | List<Integer> arr = new ArrayList<>(); |
| | | vo.setName(s); |
| | | collect = todayList.stream().filter(x -> s.equals(x.getModel())).collect(Collectors.groupingBy(item -> new SimpleDateFormat("yyyy-MM-dd HH").format(item |
| | | .getCvtOfflineTime()))); |
| | | .getFinalAssemblyOfflineTime()))); |
| | | Map<Integer,Integer> temp = new HashMap<>(); |
| | | if (CollUtil.isNotEmpty(collect)){ |
| | | for (String string : collect.keySet()) { |