|
@ -902,7 +902,13 @@ public class EduArticleService {
|
|
|
for (String doctorCode : doctorCodeArr) {
|
|
|
net.sf.json.JSONObject o = new net.sf.json.JSONObject();
|
|
|
//删除医生的推送记录
|
|
|
deleteEsDataByDoctor(doctorCode);
|
|
|
List<Map<String,Object>> list = new ArrayList<>();
|
|
|
String batchNoSql = "SELECT batch_no FROM wlyy_health_edu_article_patient_copy where doctor ='"+doctorCode+"' GROUP BY batch_no";
|
|
|
list =jdbcTemplate.queryForList(batchNoSql);
|
|
|
for (Map<String,Object> map : list){
|
|
|
deleteEsDataByBatch(String.valueOf(map.get("batch_no")));
|
|
|
}
|
|
|
//deleteEsDataByDoctor(doctorCode);
|
|
|
//新增医生的推送记录
|
|
|
Integer size = saveByDoctor(doctorCode);
|
|
|
o.put("saveEsSize", size);
|