package com.zcloud.primeport.plan;

import com.jjb.saas.framework.job.Job;
import com.jjb.saas.framework.job.annotation.JobRegister;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import com.zcloud.primeport.plan.mjDevice.OnePersonUtil;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class OneLevelUserXxlJon implements Job {

    @Resource
    private OnePersonUtil onePersonUtil;

    @Override
    @JobRegister(cron = "0 14 0 * * ?", jobDesc = "口门定时任务，每日12点14进行当日可进门人员推送", triggerStatus = 1)
    @XxlJob("com.zcloud.plan.OneLevelUserDockXxlJon")
    public ReturnT<String> execute(String param) {
        // 相关方、临时访客 每日授权 门禁
        onePersonUtil.execute();
        return ReturnT.SUCCESS;
    }
}
