aaa
doum
2026-06-08 3ac279c9df7181c9f21d35a689a321b990b87b22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
    }
}