admin
2021-03-29 3bffb8cd1bbe11e95f8fe31652cedea73dd831c2
src/main/java/com/yeshi/buwan/service/imp/juhe/YouKuServiceImpl.java
@@ -35,7 +35,7 @@
    private InternetSearchVideoService internetSearchVideoService;
    @Override
    public void save(YouKuShowDetail detail) {
    public void save(YouKuShowDetail detail) throws Exception {
        if (detail.getUpdateTime() == null)
            detail.setUpdateTime(new Date());
        youKuShowDetailDao.save(detail);
@@ -118,8 +118,11 @@
    @Override
    public void addToInternetSearch(YouKuShowDetail showDetail) throws Exception {
        save(showDetail);
        InternetSearchVideo video = InternetSearchVideoFactory.create(showDetail);
        internetSearchVideoService.save(video);
        if (internetSearchVideoService.save(video) == null) {
            return;
        }
        YouKuSearchVideoMap map = new YouKuSearchVideoMap();
        map.setShowId(showDetail.getId());
        map.setVideoId(video.getId());