feat: spu

This commit is contained in:
2025-01-22 11:04:12 +08:00
parent 2beb8d9e55
commit 9b7390129d
10 changed files with 426 additions and 10 deletions

View File

@@ -51,4 +51,13 @@ class Cycle extends Model
{
return $this->where('id',$id)->first();
}
/**
* @param string $date
* @return int
*/
public function getIdByDate(string $date): int
{
return $this->where('dates',$date)->value('id') ?? 0;
}
}