更新统一使用 PHPDoc + PSR-19 标准注释

This commit is contained in:
技术老胡
2026-04-21 08:38:59 +08:00
parent dcd58e24ce
commit 9a16a88640
252 changed files with 9218 additions and 659 deletions

View File

@@ -7,11 +7,15 @@ use app\model\admin\ChannelDailyStat;
/**
* 通道日统计仓库。
*
* 封装按通道和日期读取日统计记录。
*/
class ChannelDailyStatRepository extends BaseRepository
{
/**
* 构造函数,注入对应模型
* 构造方法
*
* @return void
*/
public function __construct()
{
@@ -20,6 +24,11 @@ class ChannelDailyStatRepository extends BaseRepository
/**
* 根据通道和日期查询统计记录。
*
* @param int $channelId 渠道ID
* @param string $statDate 统计日期
* @param array $columns 字段列表
* @return ChannelDailyStat|null 统计记录
*/
public function findByChannelAndDate(int $channelId, string $statDate, array $columns = ['*'])
{
@@ -31,3 +40,7 @@ class ChannelDailyStatRepository extends BaseRepository
}