| 
					
				 | 
			
			
				@ -132,7 +132,7 @@ public class JMJkEduArticleService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            sendTimeEnd = elasticsearchUtil.changeTime(sendTimeEnd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            sql2.append(" and createTime <='"+sendTimeEnd+"'"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sql2.append(" order by createTime limit " + page + "," + pagesize); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sql2.append(" order by createTime desc limit " + page + "," + pagesize); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<HealthEduArticleES> esList = elasticsearchUtil.excute(sql2.toString(), HealthEduArticleES.class, esIndex, esType); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Map<String, HealthEduArticlePatientModel> result = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        HealthEduArticlePatientModel heapm = null; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -143,12 +143,12 @@ public class JMJkEduArticleService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        for (HealthEduArticleES one : esList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            article = thirdJkEduArticleService.getArticalById(one.getArticleId(),""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (result.get(one.getArticleId()) != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                heapm = result.get(one.getArticleId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            if (result.get(one.getArticleId()) != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                heapm = result.get(one.getArticleId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                heapm = new HealthEduArticlePatientModel(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            heapm.setSendName(one.getSendName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            heapm.setSendCode(one.getDoctorCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -196,7 +196,7 @@ public class JMJkEduArticleService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            heapm.setArticleSource(one.getArticleSource()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            // heapm.setTime();//时间  xx小时前  2017-10-11 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resultList.add(heapm); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            result.put(one.getArticleId(), heapm); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            result.put(one.getArticleId(), heapm); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return resultList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 |