Commit c5f6bdf4 by 阮思源

早晚报

parent 5b7a4614
......@@ -42,9 +42,6 @@ public class ESNewsBizImpl implements ESNewsBiz {
@Transactional(rollbackFor = Exception.class)
@Override
public void addAllNewsToES() {
if (newsRepository.count() > 0) {
return;
}
Integer count = newsDao.count();
LOGGER.info("总数:" + count);
if (null == count || count <= 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment