feat : check

This commit is contained in:
2025-04-01 16:52:34 +08:00
parent c6e9296bb5
commit 5020e87559
2 changed files with 31 additions and 3 deletions

View File

@@ -125,6 +125,20 @@ trait PrintTrait
return CateringCode::REDIS_FINISH_VALUE == $this->redis->hGet($this->printKey, (string)$this->logInfo->id);
}
/**
* @param int $id
* @param int $cycleId
* @return bool
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
protected function checkIsPrintByList(int $id,int $cycleId): bool
{
$printKey = AdminRedisKey::optionCateringIsPrint($this->cycleId);
return CateringCode::REDIS_FINISH_VALUE == $this->redis->hGet($printKey, (string)$id);
}
/**
* @return void
* @throws ContainerExceptionInterface