|
@ -1208,8 +1208,10 @@ public class JwPrescriptionService {
|
|
|
Search search = new Search.Builder(searchSourceBuilder.toString()).addIndex(esIndex).addType(esType).build();
|
|
|
SearchResult result = jestClient.execute(search);
|
|
|
List<FollowupContentESDO> dataList = result.getSourceAsObjectList(FollowupContentESDO.class);
|
|
|
//删除原有记录
|
|
|
this.esDeleteFollowUpContent(dataList);
|
|
|
if(!dataList.isEmpty()){
|
|
|
//删除原有记录
|
|
|
this.esDeleteFollowUpContent(dataList);
|
|
|
}
|
|
|
//保存新的随访详情记录
|
|
|
elastricSearchSave.save(newdatalist,esIndex,esType);
|
|
|
jestClient.shutdownClient();
|