| | |
| | | |
| | | if (temperingGlassInfoList.size() == 0) { |
| | | MPJLambdaWrapper<GlassInfo> wrapper = JoinWrappers.lambda(GlassInfo.class) |
| | | .select("-1 as state,t.filmsid as films_id,t.glass_id,t.flow_card_id,t.glass_type,t.width,t.height" + |
| | | .select("-1 as state,t.filmsid as films_id,t.glass_id,t.flow_card_id,t.layer,t.glass_type,t.width,t.height" + |
| | | ",t.thickness,t.ishorizontal,t.tempering_layout_id,t.tempering_feed_sequence,t.x_coordinate,t.y_coordinate," + |
| | | "t.angle,t1.slot,t.engineer_id") |
| | | .innerJoin(BigStorageCageDetails.class, BigStorageCageDetails::getGlassId, GlassInfo::getGlassId) |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Map<Integer, List<BigStorageVO>> querybigStorageCageDetail() { |
| | | public Map<Object, Map<Integer, List<BigStorageVO>>> querybigStorageCageDetail() { |
| | | List<BigStorageVO> bigStorageCages = baseMapper.querybigStorageCageDetail(); |
| | | return bigStorageCages.stream().collect(Collectors.groupingBy(item -> item.getDeviceId())); |
| | | // 嵌套分组:先按slot分组,再按deviceId分组 |
| | | |
| | | return bigStorageCages.stream() |
| | | // 第一层分组:key=slot值,value=该slot下的所有BigStorageVO |
| | | .collect(Collectors.groupingBy( |
| | | BigStorageVO::getDeviceId, // 第一层分组依据:slot |
| | | // 第二层分组:对第一层的value继续按deviceId分组 |
| | | Collectors.groupingBy(BigStorageVO::getSlot) |
| | | )); |
| | | } |
| | | |
| | | @Override |