src/Leevel/Database/Ddd/Relation/HasMany.php
public function preLoadCondition(array $entitys): void
    {
        $this->select->whereIn(
            $this->targetKey,
            $this->getEntityKey($entitys, $this->sourceKey)
        );
    }
public function preLoadCondition(array $entitys): void
    {
        $this->select->whereIn(
            $this->targetKey,
            $this->getEntityKey($entitys, $this->sourceKey)
        );
    }
设置预载入关联查询条件.

@param \Leevel\Database\Ddd\IEntity[] $entitys