package com.doumee.service.business.impl;
|
|
import com.doumee.service.business.GoodsImportTaskService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.context.annotation.Lazy;
|
import org.springframework.scheduling.annotation.Async;
|
import org.springframework.stereotype.Component;
|
|
@Component
|
public class GoodsImportTaskWorker {
|
|
@Autowired
|
@Lazy
|
private GoodsImportTaskService goodsImportTaskService;
|
|
@Async
|
public void runTask(Integer taskId) {
|
goodsImportTaskService.processTask(taskId);
|
}
|
}
|