| | |
| | | /** |
| | | * 查询库存和库位详细信息 |
| | | * |
| | | * @param areaId |
| | | * @param arr |
| | | * @return |
| | | */ |
| | | public List<DtLocDetailVo> warehouseDetail(String areaId) { |
| | | |
| | | List<LocMast> locMastList = locMastService.selectList(new EntityWrapper<>()); |
| | | return locMastList.stream() |
| | | .map(loc -> { |
| | | DtLocDetailVo vo = new DtLocDetailVo(); |
| | | BeanUtils.copyProperties(loc, vo); |
| | | vo.setLocMast(loc); |
| | | LocDetl query = new LocDetl(); |
| | | query.setLocNo(loc.getLocNo()); |
| | | LocDetl locDetl = locDetlMapper.selectOne(query); |
| | | vo.setLocDetl(locDetl); |
| | | return vo; |
| | | }) |
| | | .collect(Collectors.toList()); |
| | | public List<LocMast> warehouseDetail(Integer[] arr) { |
| | | if (arr == null || arr.length == 0) { |
| | | return locMastService.selectList(new EntityWrapper<>()); |
| | | } |
| | | return locMastService.selectList(new EntityWrapper<LocMast>().in("row1", Arrays.asList(arr))); |
| | | } |
| | | |
| | | /** |