Selaa lähdekoodia

文章转移createTime为旧数据的czrq

zd_123 7 vuotta sitten
vanhempi
commit
863428022b

+ 7 - 1
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/web/third/jkedu/service/EduArticleService.java

@ -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);