package com.uas.eis.task;

import com.uas.eis.service.SaleReturnService;
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 SaleReturnTask {
    @Autowired
    SaleReturnService saleReturnService;

    @Scheduled(cron = "0 0 0/1 * * ?")
    public void getSaleReturn() {
        saleReturnService.getSaleReturn();
    }
}
