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.persistence.repository.VehicleApplyRepository;
import com.zcloud.primeport.plan.mjDevice.CarDockUtil;
import com.zcloud.primeport.plan.mjDevice.OneLevelCarUtil;
import com.zcloud.primeport.plan.mjDevice.dto.OneLevelCarSaveDto;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
public class VehicleXgfVehicleXxlJob implements Job {

    @Resource
    private CarDockUtil carDockUtil;

    @Override
    @JobRegister(cron = "0 15 0 * * ?", jobDesc = "口门定时任务，相关方、临时车辆每日进行判断能进入哪个港区。", triggerStatus = 1)
    @XxlJob("com.zcloud.plan.VehicleXgfVehicleXxlJob")
    public ReturnT<String> execute(String param) {
        carDockUtil.execute(param);
        return ReturnT.SUCCESS;
    }

}
