package com.tofly.third.task;

import com.tofly.third.service.ZnbZlLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 * @date 2026/3/9
 */
@Component
public class ZnsbTask {
    @Autowired
    private ZnbZlLogService znbZlLogService;
    /**
     * 智能水表的开关阀
     */
    //@Scheduled(cron = "${cron_expression:*/10 * * * * ?}")
    @Scheduled(cron = "${znsb.kg_cron_expression:-}")
    public void znsbTask() {
        znbZlLogService.znbkgfTask();
    }
}
