package com.shcd.scheduling;


import com.shcd.service.ShipIllegalAutoService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class IllegalShipSchedule {
    @Autowired
    private ShipIllegalAutoService autoService;
    @XxlJob("IllegalShip")
    //@Scheduled(cron = "0 0 1 * * ?")
    public ReturnT<String> IllegalShip(String param) {
        return  autoService.saveShipIllegalInfo();
    }
}
