实现爬虫自动同步数据库 加入spring batch做未来的改动准备

This commit is contained in:
yang.xie 2022-12-03 16:38:01 +08:00
parent d3c93b67a4
commit dc49ef798a
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import com.northtecom.visatrack.api.data.repository.VisaCaseRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.time.LocalDate;
import java.util.List;
import java.util.stream.Collectors;
@ -42,6 +43,7 @@ public class MyFavouredVisaCaseService {
myFavouredVisaCase = new MyFavouredVisaCase();
myFavouredVisaCase.setUserId(userId);
myFavouredVisaCase.setVisaCaseId(visaCaseId);
myFavouredVisaCase.setFavouredDate(LocalDate.now());
myFavouredVisaCaseRepository.save(myFavouredVisaCase);
}
}