package com.storlead.centre.dispatch;

import com.storlead.user.service.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.text.ParseException;


/**
 * @program: storlead-centre-platform
 * @description:
 * @author: chenkq
 * @create: 2026-01-14 11:04
 */

@Slf4j
@Component
public class SyncOaBaseDataTask {

    @Resource
    private IUserService userService;

    @Scheduled(cron ="0 0 7-18 * * ? ")
    public void syncOaData() throws ParseException {
        /**
         * 同步OA数据
         */
        userService.syncOa();

    }
}
