|
|
|
@ -62,17 +62,23 @@ public class WarehouseUpdownGoodsLogServiceImpl extends BaseServiceImpl<Warehous
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public IPage<WarehouseUpdownGoodsLogVO> selectWarehouseUpdownGoodsLogPage(IPage<WarehouseUpdownGoodsLogVO> page, WarehouseUpdownGoodsLogVO warehouseUpdownGoodsLog) { |
|
|
|
|
//获取当前登录人仓库
|
|
|
|
|
List<BasicdataWarehouseEntity> myWatchWarehouse = basicdataWarehouseClient.getMyWatchWarehouse(); |
|
|
|
|
List<Long> collect = myWatchWarehouse.stream() |
|
|
|
|
.map(BasicdataWarehouseEntity::getId) |
|
|
|
|
.collect(Collectors.toList()); |
|
|
|
|
warehouseUpdownGoodsLog.setWarehouseIdList(collect); |
|
|
|
|
//查询操作员
|
|
|
|
|
// if (null != warehouseUpdownGoodsLog.getCreateUserName()){
|
|
|
|
|
// R<List<User>> listR = userSearchClient.listByName(warehouseUpdownGoodsLog.getCreateUserName());
|
|
|
|
|
// log.info("listR>>>>{}",listR);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
if(ObjectUtils.isEmpty(myCurrentWarehouse)){ |
|
|
|
|
List<BasicdataWarehouseEntity> myWatchWarehouse = basicdataWarehouseClient.getMyWatchWarehouse(); |
|
|
|
|
List<Long> collect = myWatchWarehouse.stream() |
|
|
|
|
.map(BasicdataWarehouseEntity::getId) |
|
|
|
|
.collect(Collectors.toList()); |
|
|
|
|
warehouseUpdownGoodsLog.setWarehouseIdList(collect); |
|
|
|
|
}else{ |
|
|
|
|
//获取当前登录人仓库
|
|
|
|
|
List<Long> collect = Arrays.asList(myCurrentWarehouse.getId()); |
|
|
|
|
warehouseUpdownGoodsLog.setWarehouseIdList(collect); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<WarehouseUpdownGoodsLogVO> warehouseUpdownGoodsLogVOS = baseMapper.selectWarehouseUpdownGoodsLogPage(page, warehouseUpdownGoodsLog); |
|
|
|
|
return page.setRecords(warehouseUpdownGoodsLogVOS); |
|
|
|
|
} |
|
|
|
|