|
@ -161,6 +161,7 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
heapm.setSendCode(one.getDoctorCode());
|
|
|
// SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
heapm.setCreateTime(DateUtil.dateToStrLong(one.getCreateTime()));
|
|
|
heapm.setCzrq(DateUtil.dateToStrLong(one.getCzrq()));//阅读时间
|
|
|
heapm.setArticleId(article.getString("articleId"));
|
|
|
heapm.setAttachedTitle(article.getString("articleTitle"));
|
|
|
heapm.setAttachedContent(article.getString("articleContent"));
|
|
@ -1138,6 +1139,7 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
}
|
|
|
for (HealthEduArticleES healthEduArticleES:dataList) {
|
|
|
healthEduArticleES.setIsRead(1);
|
|
|
healthEduArticleES.setCzrq(new Date());
|
|
|
}
|
|
|
elastricSearchSave.save(dataList,esIndex,esType);
|
|
|
jestClient.shutdownClient();
|
|
@ -1180,6 +1182,7 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
}
|
|
|
for (HealthEduArticleES healthEduArticleES:dataList) {
|
|
|
healthEduArticleES.setIsRead(1);
|
|
|
healthEduArticleES.setCzrq(new Date());
|
|
|
}
|
|
|
elastricSearchSave.save(dataList,esIndex,esType);
|
|
|
jestClient.shutdownClient();
|