package com.uas.eis.task;

import com.uas.eis.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by luhg on 2018/4/24.
 * 出入库定时任务
 */
@Component
public class StockTask {
    @Autowired
    StockService stockService;

    @Scheduled(cron = "0 0/50 * * * ?")
    public void autoPost() {
        stockService.autoPost(); //出入库定时过账
    }
}
