package com.shcd.scheduling;


import com.shcd.service.ShipLockWaterLevelService;
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 ShipLockWaterLevelSchedule {
    @Autowired
    private ShipLockWaterLevelService shipLockWaterLevelService;
    @XxlJob("ShipLockWaterLevel")
    //@Scheduled(cron = "0 0 1 * * ?")
    public ReturnT<String> ShipLockWaterLevel(String param){
        return shipLockWaterLevelService.saveWaterLevel();
    }
}
