|
@@ -9,15 +9,14 @@ import org.springframework.stereotype.Service;
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
-@Service // 标记为服务层组件
|
|
|
|
|
|
|
+@Service
|
|
|
public class SpiderTaskServiceImpl implements SpiderTaskService {
|
|
public class SpiderTaskServiceImpl implements SpiderTaskService {
|
|
|
|
|
|
|
|
- @Resource // 注入 Mapper
|
|
|
|
|
|
|
+ @Resource
|
|
|
private SpiderTaskMapper spiderTaskMapper;
|
|
private SpiderTaskMapper spiderTaskMapper;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public List<SpiderTask> getSpiderTaskList() {
|
|
public List<SpiderTask> getSpiderTaskList() {
|
|
|
- // 调用 Mapper 查询列表
|
|
|
|
|
return spiderTaskMapper.selectByExample(new SpiderTaskExample());
|
|
return spiderTaskMapper.selectByExample(new SpiderTaskExample());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|