package com.uas.eis.task;

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

/**
 * Created by luhg on 2018/4/26.
 * 销售订单
 */
@Component
public class SaleTask {
    @Autowired
    SaleService saleService;


    @Scheduled(cron = "0 0/55 * * * ?")
    public void getSale() {
        saleService.getSale();
    }
}
