|
@ -1,11 +1,10 @@
|
|
|
package com.yihu.wlyy.web.doctor.jimeiJkEdu;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yihu.es.entity.HealthEduArticlePatient;
|
|
|
import com.yihu.wlyy.aop.ObserverRequired;
|
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
|
import com.yihu.wlyy.service.call.CustomerService;
|
|
|
import com.yihu.wlyy.service.jimeiJkEdu.JMJkEduArticleService;
|
|
|
import com.yihu.wlyy.service.third.jw.JwSmjkService;
|
|
|
import com.yihu.wlyy.service.third.jkEduArticle.ThirdJkEduArticleService;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
|
import com.yihu.wlyy.web.third.gateway.service.GcEduArticleService;
|
|
|
import com.yihu.wlyy.web.third.gateway.vo.HealthEduArticlePatientModel;
|
|
@ -40,7 +39,8 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
|
@Autowired
|
|
|
private JMJkEduArticleService jmJkEduArticleService;
|
|
|
@Autowired
|
|
|
private GcEduArticleService gcEduArticleService;
|
|
|
private ThirdJkEduArticleService thirdJkEduArticleService;
|
|
|
|
|
|
@Autowired
|
|
|
private JmsTemplate jmsTemplate;
|
|
|
@Value("${activemq.queue.healtHarticleQueue}")
|
|
@ -234,6 +234,68 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
|
return new BaseResultModel(BaseResultModel.statusEm.opera_error.getCode(), BaseResultModel.statusEm.opera_error.getMessage() + ":" + e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "getArticalById",method = RequestMethod.GET)
|
|
|
@ApiOperation("获取文章详情")
|
|
|
public String getArticalById(@ApiParam(name = "articleId", value = "文章id",defaultValue = "1")
|
|
|
@RequestParam(value = "articleId", required = true) String articleId){
|
|
|
try {
|
|
|
com.alibaba.fastjson.JSONObject response = thirdJkEduArticleService.getArticalById(articleId,getUID());
|
|
|
return write(200,"查询成功!","data",response);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return error(-1,"查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 医生端端文章列表
|
|
|
* @param firstLevelCategoryId
|
|
|
* @param secondLevelCategoryId
|
|
|
* @param insertTimeStart
|
|
|
* @param insertTimeEnd
|
|
|
* @param articlelevel
|
|
|
* @param articleTitle
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "queryArticlePcList", method = RequestMethod.GET)
|
|
|
@ApiOperation("医生端文章列表")
|
|
|
public String queryArticlePcList(@ApiParam(name = "firstLevelCategoryId", value = "文章一级分类")
|
|
|
@RequestParam(value = "firstLevelCategoryId", required = false) String firstLevelCategoryId,
|
|
|
@ApiParam(name = "secondLevelCategoryId", value = "文章二级分类")
|
|
|
@RequestParam(value = "secondLevelCategoryId", required = false) String secondLevelCategoryId,
|
|
|
@ApiParam(name = "insertTimeStart", value = "新增文章开始时间")
|
|
|
@RequestParam(value = "insertTimeStart", required = false) String insertTimeStart,
|
|
|
@ApiParam(name = "insertTimeEnd", value = "新增文章结束时间")
|
|
|
@RequestParam(value = "insertTimeEnd", required = false) String insertTimeEnd,
|
|
|
@ApiParam(name = "articlelevel", value = "文章级别")
|
|
|
@RequestParam(value = "articlelevel", required = false) String articlelevel,
|
|
|
@ApiParam(name = "articleTitle", value = "文章标题关键字")
|
|
|
@RequestParam(value = "articleTitle", required = false) String articleTitle,
|
|
|
// @ApiParam(name = "currentUserRole", value = "当前登录的角色")
|
|
|
// @RequestParam(value = "currentUserRole", required = true) String currentUserRole,
|
|
|
// @ApiParam(name = "currentUserRoleLevel", value = "当前登录的角色级别")
|
|
|
// @RequestParam(value = "currentUserRoleLevel", required = true )String currentUserRoleLevel,
|
|
|
@ApiParam(name = "isAuthentication", value = "是否认证")
|
|
|
@RequestParam(value = "isAuthentication", required = false) String isAuthentication,
|
|
|
@ApiParam(name = "isMyArticle", value = "是否过滤我的文章")
|
|
|
@RequestParam(value = "isMyArticle", required = false) Boolean isMyArticle,
|
|
|
@ApiParam(name = "page", value = "当前页")
|
|
|
@RequestParam(value = "page", required = true) Integer page,
|
|
|
@ApiParam(name = "pageSize", value = "分页数")
|
|
|
@RequestParam(value = "pageSize", required = true) Integer pageSize){
|
|
|
try {
|
|
|
|
|
|
|
|
|
JSONObject response = jmJkEduArticleService.queryArticlePcList(firstLevelCategoryId,secondLevelCategoryId,insertTimeStart,insertTimeEnd,articlelevel,articleTitle,
|
|
|
getUID(),getCurrentRoleCode(),getCurrentRoleLevel(),isAuthentication,isMyArticle,page,pageSize);
|
|
|
|
|
|
return write(200,"查询成功!","data",response);
|
|
|
} catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return error(-1,"查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/*************************************************************************医生角色end***************************************************************************************************/
|