package com.ruoyi.web.modules.booking.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.ruoyi.web.modules.booking.service.IExpertRatingSyncService;

/**
 * 专家评分定时任务（Quartz 调用：expertRatingSyncTask.syncExpertRatings）。
 * <p>
 * 建议 cron：{@code 0 0 23 * * ?}（每天 23:00）。
 */
@Component("expertRatingSyncTask")
public class ExpertRatingSyncTask
{
    @Autowired
    private IExpertRatingSyncService expertRatingSyncService;

    public void syncExpertRatings()
    {
        expertRatingSyncService.syncAllExpertRatings();
    }
}
