|
@ -3,6 +3,7 @@ package com.yihu.wlyy.web.doctor.jimeiJkEduPC;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yihu.es.entity.HealthEduArticleES;
|
|
|
import com.yihu.wlyy.service.app.health.HealthEduArticleLabelService;
|
|
|
import com.yihu.wlyy.service.jimeiJkEdu.JMJkEduArticleService;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
|
import com.yihu.wlyy.web.third.gateway.vo.HealthEduArticlePatientModel;
|
|
@ -13,7 +14,11 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
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 java.util.HashSet;
|
|
|
import java.util.List;
|
|
|
import java.util.Set;
|
|
@ -32,6 +37,8 @@ public class DoctorJMJkEduArticlePCController extends BaseController {
|
|
|
String fastdfs_file_url;
|
|
|
@Value("${neiwang.enable}")
|
|
|
private Boolean isneiwang = false; //如果不是内网项目要转到到内网wlyy在上传
|
|
|
@Autowired
|
|
|
private HealthEduArticleLabelService healthEduArticleLabelService;
|
|
|
|
|
|
@RequestMapping(value = "saveArticle", method = RequestMethod.POST)
|
|
|
@ApiOperation("添加、编辑文章")
|
|
@ -130,8 +137,12 @@ public class DoctorJMJkEduArticlePCController extends BaseController {
|
|
|
|
|
|
JSONObject response = jmJkEduArticleService.queryArticlePcList(firstLevelCategoryId,secondLevelCategoryId,insertTimeStart,insertTimeEnd,articlelevel,articleTitle,
|
|
|
getUID(),currentUserRole,currentUserRoleLevel,isAuthentication,isMyArticle,page,pageSize,sEcho,roleType);
|
|
|
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(articleTitle)){
|
|
|
//记录搜索记录
|
|
|
healthEduArticleLabelService.saveOrUpdateLabel(articleTitle,getUID());
|
|
|
}
|
|
|
|
|
|
//判断文章列表是否有推送过该居民
|
|
|
if(StringUtils.isNotBlank(patient)){
|
|
|
com.alibaba.fastjson.JSONArray pushresponse = jmJkEduArticleService.pushArticleLogs(0,0,patient,"");
|