|
|
|
@ -2915,12 +2915,18 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
List<Long> deliveryIds = distributionDeliverySelfMapper.selectdeliveryList(driverArtery.getId()); |
|
|
|
|
if (!deliveryIds.isEmpty()) { |
|
|
|
|
distributionAppDeliveryListVOS = baseMapper.selectDistributionAppDeliveryInListPage(page, distributionAppDeliveryListDTO, deliveryIds); |
|
|
|
|
distributionAppDeliveryListVOS = baseMapper.selectDistributionAppDeliveryInListPage(page, distributionAppDeliveryListDTO, deliveryIds,null); |
|
|
|
|
} else { |
|
|
|
|
return page.setRecords(distributionAppDeliveryListVOS); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
distributionAppDeliveryListVOS = baseMapper.selectDistributionAppDeliveryInListPage(page, distributionAppDeliveryListDTO, null); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取当前账号能看到的仓库列表 |
|
|
|
|
*/ |
|
|
|
|
List<Long> warehouseIdList = getWarehouseIdList(); |
|
|
|
|
|
|
|
|
|
distributionAppDeliveryListVOS = baseMapper.selectDistributionAppDeliveryInListPage(page, distributionAppDeliveryListDTO, null,warehouseIdList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -3074,6 +3080,25 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
return page.setRecords(distributionAppDeliveryListVOS); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@NotNull |
|
|
|
|
private List<Long> getWarehouseIdList() { |
|
|
|
|
List<Long> warehouseIdList = new ArrayList<>(); |
|
|
|
|
// 获取当前登陆人能操作的仓库
|
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
|
|
|
|
|
if(Objects.isNull(myCurrentWarehouse)){ |
|
|
|
|
// 获取能操作的仓库列表
|
|
|
|
|
List<BasicdataWarehouseEntity> myWarehouseList = basicdataWarehouseClient.getMyWarehouseList(); |
|
|
|
|
for (BasicdataWarehouseEntity basicdataWarehouseEntity : myWarehouseList) { |
|
|
|
|
warehouseIdList.add(basicdataWarehouseEntity.getId()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
warehouseIdList.add(myCurrentWarehouse.getId()); |
|
|
|
|
} |
|
|
|
|
return warehouseIdList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<DistributionAppStockArticleVO> selectAppDeliveryInventory(DistributionAppDeliveryListDTO distributionAppDeliveryListDTO) { |
|
|
|
|
List<DistributionAppStockArticleVO> distributionAppStockArticleVOS = baseMapper.selectAppDeliveryInventoryPage(distributionAppDeliveryListDTO); |
|
|
|
|