package com.chinaweal.aiccs.schedule;

import com.chinaweal.aiccs.aiccs.abnormal.mapper.TSAbnListMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 另册管理定时任务
 *
 * @author zhouxy
 * @since 2026/4/23
 */
@Slf4j
@Component
public class AnotherListSchedule {

    @Autowired
    private TSAbnListMapper tsAbnListMapper;

    /**
     * 另册管理定时任务
     *
     * @author zhouxy
     */
    @Scheduled(cron = "${scheduling.cron.anotherListPB}")
    public void executeAnotherListTask() {
        log.info("===========开始执行另册管理定时任务===========");
        //查询当天移出的个体户，查询这些个体户是否全都移出异常，如果是，就标记上
        Boolean b = tsAbnListMapper.updateAbnIsRemoveList();
        log.info("===========结束执行另册管理定时任务===========");
    }

}
