| 
					
				 | 
			
			
				@ -2,8 +2,13 @@ package com.yihu.wlyy.web.patient.jimeiJkEdu; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.alibaba.fastjson.JSONArray; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.alibaba.fastjson.JSONObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.es.entity.HealthEduArticleES; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.entity.education.HealthEduArticle; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.entity.education.HealthEduArticleOpHistory; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.entity.education.HealthEduArticlePatient; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.service.jimeiJkEdu.JMJkEduArticleService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.service.third.jkEduArticle.ThirdJkEduArticleService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.util.DateUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.web.BaseController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import io.swagger.annotations.Api; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import io.swagger.annotations.ApiOperation; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -11,12 +16,11 @@ import io.swagger.annotations.ApiParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.apache.commons.lang3.StringUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.http.MediaType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.web.bind.annotation.RequestMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.web.bind.annotation.RequestMethod; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.web.bind.annotation.RequestParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.web.bind.annotation.RestController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.util.Date; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.util.HashSet; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.util.Set; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				/** 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -202,4 +206,48 @@ public class PatientJMJkEduArticleController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return error(-1,"保存失败!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//     * 旧接口查询文章详情 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//     * @param article 数据文章唯一标示article 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//     * @return 列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//    @RequestMapping(value = "article") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//    @ResponseBody 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//    @ApiOperation("查询文章") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//    public String article( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            @ApiParam(name = "article", value = "文章ID", required = true) @RequestParam(value = "article", required = true) String article 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				////            @ApiParam(name = "batchNo", value = "发送所属批次", required = true) @RequestParam(value = "batchNo", required = true) String batchNo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//    ) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            //获取单条文章记录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            String patient = getUID(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            thirdJkEduArticleService.saveBehavior(article,patient,4,null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            List<HealthEduArticleES> healthEduArticleES = jmJkEduArticleService.findByArticleAndPatient(article, patient); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            if (healthEduArticleES == null || healthEduArticleES.size() == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                return error(-2, "对不起,该消息不是您的消息,您无法查看哦~"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            jmJkEduArticleService.readPatientArticle(patient,article); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            com.alibaba.fastjson.JSONObject response = thirdJkEduArticleService.getArticalById(article,patient); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            org.json.JSONObject json = new org.json.JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//           // 文章标识 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            json.put("article", response.get("articleId")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            // 医生姓名 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            json.put("doctorName", response.get("doctorName")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//           // 文章标题 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            json.put("title", response.get("articleTitle")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//           // 文章内容 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            json.put("content", response.get("articleContent")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//           // 添加日期 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            json.put("czrq", DateUtil.dateToStrLong(new Date())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				////            int readAmount = healthEduArticleOpHistoryService.countReadAmount(healthEduArticlePatient.getArticle()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            json.put("readAmount", response.get("browseNumber")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            return write(200, "查询成功", "data", json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        } catch (Exception ex) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            error(ex); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            return invalidUserException(ex, -1, "查询失败!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				} 
			 |