aaa
doum
2026-06-08 cf2da3b2a63840888815c6a81cbd7948faf93533
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);
    }
}