package com.zehong.quartz.task;

import com.zehong.system.service.ITStatisticsInspectItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("inspectItemStatisticsTask")
public class InspectItemStatisticsTask {

    @Autowired
    private ITStatisticsInspectItemService itStatisticsInspectItemService;

    /**
     * 定时统计昨天安检项
     */
    public void statisticsYesterdayResidentInspectItem(){
        itStatisticsInspectItemService.statisticsYesterdayResidentInspectItem();
    }

    /**
     * 手动统计时间段内每天安检项
     * @param beginTime
     * @param endTime
     */
    public void statisticsResidentInspectItemByHand(String beginTime,String endTime){
        itStatisticsInspectItemService.statisticsResidentInspectItemByHand(beginTime,endTime);
    }
}
