package com.shcd.scheduling;


import com.shcd.service.ShipLockShipStatusService;
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 ShipStatusSchedule {
    @Autowired
    private ShipLockShipStatusService shipLockShipStatusService;
    @XxlJob("ShipStatus")
    //@Scheduled(cron = "0 0 1 * * ?")
    public ReturnT<String> ShipStatus(String param){
        return shipLockShipStatusService.saveShipStatus();
    }
}
