实现爬虫自动同步数据库 加入spring batch做未来的改动准备
This commit is contained in:
parent
d3c93b67a4
commit
dc49ef798a
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue