feat : check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user