@@ -47,8 +47,8 @@ public class GetEcigaretteService {
private SourceInfoMapper sourceInfoMapper;
-// @Scheduled(cron = "0 0 5 * * ?")
-// @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
+ @Scheduled(cron = "0 0 5 * * ?")
+ @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
public void execute() {
System.out.println(new Date() + "-------AddArticle-Begin");
List<SourceInfo> sourceInfos = sourceInfoMapper.selectList(new LambdaQueryWrapper<SourceInfo>()
@@ -413,7 +413,7 @@ class PpaApplicationTests {
// }
- .in(SourceInfo::getCategoryId, Arrays.asList(22)));
+ .in(SourceInfo::getCategoryId, Arrays.asList(16, 17, 18, 19, 20, 21, 22)));
for (SourceInfo sourceInfo : sourceInfos) {
String sourceUrl = sourceInfo.getSourceUrl();
String sourceName = sourceInfo.getSourceName();