提交 a1ed1e85 authored 作者: liupengfei's avatar liupengfei

--no commit message

上级 8e2bfd53
......@@ -7,6 +7,7 @@ import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
import com.zrqx.resource.commons.model.ebook.Ebook;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -134,10 +135,16 @@ public class AudioLibraryController {
diyType.setAudioId(id);
list.add(diyType);
});
AudioLibrary audioLibrary = new AudioLibrary();
audioLibrary.setId(id);
audioLibrary.setUpdateTime(new Date());
service.updateByPrimaryKeySelective(audioLibrary);
});
if (!vdrService.insertList(list)) {
throw new BaseException("操作失败");
}
// 增量索引
solrManage.asyncDeltaIndex();
return CallBack.success();
}
......
......@@ -304,8 +304,14 @@ public class EbookController {
li.setCode(code);
list.add(li);
}
Ebook ebook = new Ebook();
ebook.setId(id);
ebook.setUpdateTime(new Date());
ebookservice.updateByPrimaryKeySelective(ebook);
});
dtservice.insertList(list);
// 增量索引
solrManage.asyncDeltaIndex();
return CallBack.success();
}
......
......@@ -6,6 +6,7 @@ import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
import com.zrqx.resource.commons.model.audiolibrary.AudioLibrary;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......@@ -116,10 +117,16 @@ public class VideoLibraryController {
diyType.setVideoId(id);
list.add(diyType);
});
VideoLibrary videoLibrary = new VideoLibrary();
videoLibrary.setId(id);
videoLibrary.setUpdateTime(new Date());
service.updateByPrimaryKeySelective(videoLibrary);
});
if (!vdrService.insertList(list)) {
throw new BaseException("操作失败");
}
// 增量索引
solrManage.asyncDeltaIndex();
return CallBack.success();
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论