|
@ -2,7 +2,11 @@ package com.yihu.wlyy.web.doctor.jimeiJkEdu;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.yihu.es.entity.HealthEduArticlePatient;
|
|
import com.yihu.es.entity.HealthEduArticlePatient;
|
|
|
|
import com.yihu.wlyy.aop.ObserverRequired;
|
|
|
|
import com.yihu.wlyy.entity.education.HealthEduArticle;
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
|
|
import com.yihu.wlyy.service.app.label.SignPatientLabelInfoService;
|
|
|
|
import com.yihu.wlyy.service.call.CustomerService;
|
|
import com.yihu.wlyy.service.jimeiJkEdu.JMJkEduArticleService;
|
|
import com.yihu.wlyy.service.jimeiJkEdu.JMJkEduArticleService;
|
|
import com.yihu.wlyy.service.third.jkEduArticle.ThirdJkEduArticleService;
|
|
import com.yihu.wlyy.service.third.jkEduArticle.ThirdJkEduArticleService;
|
|
import com.yihu.wlyy.web.BaseController;
|
|
import com.yihu.wlyy.web.BaseController;
|
|
@ -13,6 +17,8 @@ import com.yihu.wlyy.web.third.gateway.vo.base.ResultPageListModel;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.json.JSONArray;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.http.MediaType;
|
|
@ -24,9 +30,7 @@ import javax.jms.JMSException;
|
|
import javax.jms.Message;
|
|
import javax.jms.Message;
|
|
import javax.jms.Session;
|
|
import javax.jms.Session;
|
|
import javax.jms.TextMessage;
|
|
import javax.jms.TextMessage;
|
|
import java.util.HashSet;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Set;
|
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Created by Trick on 2017/11/14.
|
|
* Created by Trick on 2017/11/14.
|
|
@ -40,7 +44,7 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
private JMJkEduArticleService jmJkEduArticleService;
|
|
private JMJkEduArticleService jmJkEduArticleService;
|
|
@Autowired
|
|
@Autowired
|
|
private ThirdJkEduArticleService thirdJkEduArticleService;
|
|
private ThirdJkEduArticleService thirdJkEduArticleService;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private JmsTemplate jmsTemplate;
|
|
private JmsTemplate jmsTemplate;
|
|
@Value("${activemq.queue.healtHarticleQueue}")
|
|
@Value("${activemq.queue.healtHarticleQueue}")
|
|
@ -48,6 +52,7 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
@Value("${jkEdu.web.articleBaseUrl}")
|
|
@Value("${jkEdu.web.articleBaseUrl}")
|
|
private String articleBaseUrl;
|
|
private String articleBaseUrl;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* 发送到redis
|
|
* 发送到redis
|
|
*
|
|
*
|
|
@ -107,7 +112,8 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
@ApiParam(name = "labelServeType", value = "标签类型 3:服务类型,多个用逗号分隔", required = false) @RequestParam(value = "labelServeType", required = false, defaultValue = "") String labelServeType,
|
|
@ApiParam(name = "labelServeType", value = "标签类型 3:服务类型,多个用逗号分隔", required = false) @RequestParam(value = "labelServeType", required = false, defaultValue = "") String labelServeType,
|
|
@ApiParam(name = "labelDiseaseType", value = "标签类型 4:疾病类型,多个用逗号分隔", required = false) @RequestParam(value = "labelDiseaseType", required = false, defaultValue = "") String labelDiseaseType,
|
|
@ApiParam(name = "labelDiseaseType", value = "标签类型 4:疾病类型,多个用逗号分隔", required = false) @RequestParam(value = "labelDiseaseType", required = false, defaultValue = "") String labelDiseaseType,
|
|
@ApiParam(name = "labelHealthType", value = "标签类型 5:健康情况,多个用逗号分隔", required = false) @RequestParam(value = "labelHealthType", required = false, defaultValue = "") String labelHealthType,
|
|
@ApiParam(name = "labelHealthType", value = "标签类型 5:健康情况,多个用逗号分隔", required = false) @RequestParam(value = "labelHealthType", required = false, defaultValue = "") String labelHealthType,
|
|
@ApiParam(name = "articleId", value = "文章ID", required = true) @RequestParam(value = "articleId", required = true) String articleId
|
|
|
|
|
|
@ApiParam(name = "articleId", value = "文章ID", required = true) @RequestParam(value = "articleId", required = true) String articleId,
|
|
|
|
@ApiParam(name = "leaveWords", value = "医生留言", required = false) @RequestParam(value = "leaveWords", required = false) String leaveWords
|
|
){
|
|
){
|
|
try {
|
|
try {
|
|
|
|
|
|
@ -116,7 +122,7 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
jmJkEduArticleService.initPatient(patientSet,labelUnitType,labelSexType,labelServeType,labelDiseaseType,labelHealthType,getUID());
|
|
jmJkEduArticleService.initPatient(patientSet,labelUnitType,labelSexType,labelServeType,labelDiseaseType,labelHealthType,getUID());
|
|
// patientSet.add(patientService.findByCode("wjw00000001000e6badcfa163e424525"));
|
|
// patientSet.add(patientService.findByCode("wjw00000001000e6badcfa163e424525"));
|
|
//获取保存发送记录
|
|
//获取保存发送记录
|
|
HealthEduArticlePatient healthEduArticlePatient = jmJkEduArticleService.saveArticle(patientSet, getUID(), 2,"", 0L, articleId);
|
|
|
|
|
|
HealthEduArticlePatient healthEduArticlePatient = jmJkEduArticleService.saveArticle(patientSet, getUID(), 2,"", 0L, articleId,leaveWords);
|
|
//推送微信模板消息和发送im消息
|
|
//推送微信模板消息和发送im消息
|
|
new Thread(() -> {
|
|
new Thread(() -> {
|
|
//发送任务到redis
|
|
//发送任务到redis
|
|
@ -174,14 +180,30 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@RequestMapping(value = "doctorPushArticleConfirm",method = RequestMethod.GET)
|
|
@RequestMapping(value = "doctorPushArticleConfirm",method = RequestMethod.GET)
|
|
public String doctorPushArticleConfirm(
|
|
public String doctorPushArticleConfirm(
|
|
@ApiParam(name = "teamId", value = "行政团队id", required = false) @RequestParam(value = "teamId", required = false) Long teamId,
|
|
|
|
@ApiParam(name = "labelType", value = "1:服务类型(卫计委分组) 2:健康情况 3:疾病类型 4:团队标签(自定义标签)", required = true) @RequestParam(value = "labelType", required = true) String labelType,
|
|
|
|
@ApiParam(name = "condition", value = "多个筛选条件以逗号分割", required = false) @RequestParam(value = "condition", required = false) String condition,
|
|
|
|
@ApiParam(name = "groupType", value = "多个分组以逗号分割", required = false) @RequestParam(value = "groupType", required = false) String groupType,
|
|
|
|
@ApiParam(name = "articleId", value = "文章ID", required = true) @RequestParam(value = "articleId", required = true) String articleId){
|
|
|
|
|
|
@RequestParam(value = "code") String code,
|
|
|
|
@RequestParam(value = "patient", required = false) String patient,
|
|
|
|
@RequestParam(value = "group", required = false, defaultValue = "") String group,
|
|
|
|
@RequestParam(value = "labelType", required = false) String labelType,
|
|
|
|
@RequestParam(value = "teamCode", required = false) long teamCode,
|
|
|
|
@RequestParam(value = "articleId", required = false) String articleId){
|
|
try {
|
|
try {
|
|
|
|
|
|
com.alibaba.fastjson.JSONObject response = jmJkEduArticleService.pushArticleConfirm(articleId,labelType,condition,groupType,teamId,getUID());
|
|
|
|
|
|
if (StringUtils.isEmpty(code)) {
|
|
|
|
return error(-1,"请至少选择一篇文章!");
|
|
|
|
}
|
|
|
|
if (StringUtils.isEmpty(patient) && StringUtils.isEmpty(group)) {
|
|
|
|
return error(-1,"请至少选择一个患者!");
|
|
|
|
}
|
|
|
|
String[] articles = code.split(",");
|
|
|
|
String[] patients = patient.split(",");
|
|
|
|
String[] groups = group.split(",");
|
|
|
|
if (articles.length == 0) {
|
|
|
|
return error(-1,"请至少选择一篇文章!");
|
|
|
|
}
|
|
|
|
if (patients.length == 0 && groups.length == 0) {
|
|
|
|
return error(-1,"请至少选择一个患者!");
|
|
|
|
}
|
|
|
|
com.alibaba.fastjson.JSONObject response = jmJkEduArticleService.pushArticleConfirm(getUID(),groups,group,labelType,teamCode,patients,articleId);
|
|
return write(200,"查询成功!","data",response);
|
|
return write(200,"查询成功!","data",response);
|
|
}catch (Exception e) {
|
|
}catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
@ -189,26 +211,71 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// @RequestMapping(value = "doctorSendArticleToPatients", method = RequestMethod.POST)
|
|
|
|
// @ApiOperation("医生文章群推送")
|
|
|
|
// public BaseResultModel doctorSendArticleToPatients(
|
|
|
|
// @ApiParam(name = "teamId", value = "行政团队id", required = false) @RequestParam(value = "teamId", required = false) Long teamId,
|
|
|
|
// @ApiParam(name = "labelType", value = "1:服务类型(卫计委分组) 2:健康情况 3:疾病类型 4:团队标签(自定义标签)", required = true) @RequestParam(value = "labelType", required = true) String labelType,
|
|
|
|
// @ApiParam(name = "condition", value = "多个筛选条件以逗号分割", required = false) @RequestParam(value = "condition", required = false) String condition,
|
|
|
|
// @ApiParam(name = "groupType", value = "多个分组以逗号分割", required = false) @RequestParam(value = "groupType", required = false) String groupType,
|
|
|
|
// @ApiParam(name = "articleId", value = "文章ID", required = true) @RequestParam(value = "articleId", required = true) String articleId){
|
|
|
|
// try {
|
|
|
|
// Set<String> patientSet = new HashSet<>(); //放入set中可以去重复
|
|
|
|
// //得到需要发送的患者
|
|
|
|
// jmJkEduArticleService.initPatients(patientSet,labelType,condition,groupType,teamId,getUID());
|
|
|
|
// HealthEduArticlePatient healthEduArticlePatient = jmJkEduArticleService.saveArticle(patientSet, getUID(), 1,"", teamId, articleId);
|
|
|
|
// //推送微信模板消息和发送im消息
|
|
|
|
// new Thread(() -> {
|
|
|
|
// //发送任务到redis
|
|
|
|
// sender(healthEduArticlePatient);
|
|
|
|
// }).start();
|
|
|
|
// return new BaseResultModel();
|
|
|
|
// }catch (Exception e) {
|
|
|
|
// return new BaseResultModel(BaseResultModel.statusEm.opera_error.getCode(), BaseResultModel.statusEm.opera_error.getMessage() + ":" + e.getMessage());
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
@RequestMapping(value = "doctorSendArticleToPatients", method = RequestMethod.POST)
|
|
@RequestMapping(value = "doctorSendArticleToPatients", method = RequestMethod.POST)
|
|
@ApiOperation("医生文章群推送")
|
|
@ApiOperation("医生文章群推送")
|
|
public BaseResultModel doctorSendArticleToPatients(
|
|
|
|
@ApiParam(name = "teamId", value = "行政团队id", required = false) @RequestParam(value = "teamId", required = false) Long teamId,
|
|
|
|
@ApiParam(name = "labelType", value = "1:服务类型(卫计委分组) 2:健康情况 3:疾病类型 4:团队标签(自定义标签)", required = true) @RequestParam(value = "labelType", required = true) String labelType,
|
|
|
|
@ApiParam(name = "condition", value = "多个筛选条件以逗号分割", required = false) @RequestParam(value = "condition", required = false) String condition,
|
|
|
|
@ApiParam(name = "groupType", value = "多个分组以逗号分割", required = false) @RequestParam(value = "groupType", required = false) String groupType,
|
|
|
|
@ApiParam(name = "articleId", value = "文章ID", required = true) @RequestParam(value = "articleId", required = true) String articleId){
|
|
|
|
|
|
public BaseResultModel doctorSendArticleToPatients(@RequestParam(value = "code") String code,
|
|
|
|
@RequestParam(value = "patient", required = false) String patient,
|
|
|
|
@RequestParam(value = "group", required = false, defaultValue = "") String group,
|
|
|
|
@RequestParam(value = "labelType", required = false) String labelType,
|
|
|
|
@RequestParam(value = "teamCode", required = false) long teamCode,
|
|
|
|
@RequestParam(value = "articleId", required = false) String articleId,
|
|
|
|
@RequestParam(value = "leaveWords", required = false) String leaveWords){
|
|
|
|
|
|
try {
|
|
try {
|
|
|
|
if (StringUtils.isEmpty(code)) {
|
|
|
|
return new BaseResultModel("请至少选择一篇文章!");
|
|
|
|
}
|
|
|
|
if (StringUtils.isEmpty(patient) && StringUtils.isEmpty(group)) {
|
|
|
|
return new BaseResultModel("请至少选择一个患者!");
|
|
|
|
}
|
|
|
|
String[] articles = code.split(",");
|
|
|
|
String[] patients = patient.split(",");
|
|
|
|
String[] groups = group.split(",");
|
|
|
|
if (articles.length == 0) {
|
|
|
|
return new BaseResultModel("请至少选择一篇文章!");
|
|
|
|
}
|
|
|
|
if (patients.length == 0 && groups.length == 0) {
|
|
|
|
return new BaseResultModel("请至少选择一个患者!");
|
|
|
|
}
|
|
Set<String> patientSet = new HashSet<>(); //放入set中可以去重复
|
|
Set<String> patientSet = new HashSet<>(); //放入set中可以去重复
|
|
//得到需要发送的患者
|
|
|
|
jmJkEduArticleService.initPatients(patientSet,labelType,condition,groupType,teamId,getUID());
|
|
|
|
HealthEduArticlePatient healthEduArticlePatient = jmJkEduArticleService.saveArticle(patientSet, getUID(), 1,"", teamId, articleId);
|
|
|
|
|
|
jmJkEduArticleService.initPatients(getUID(),groups, group,labelType,teamCode,patients,patientSet);
|
|
|
|
// jmJkEduArticleService.initPatient(getUID(),groups,group,labelType,teamCode,patients,patientSet);
|
|
|
|
if (patientSet.size() == 0) {
|
|
|
|
return new BaseResultModel("请至少选择一个患者!");
|
|
|
|
}
|
|
|
|
HealthEduArticlePatient healthEduArticlePatient = jmJkEduArticleService.saveArticle(patientSet, getUID(), 1,"", teamCode, articleId,leaveWords);
|
|
//推送微信模板消息和发送im消息
|
|
//推送微信模板消息和发送im消息
|
|
new Thread(() -> {
|
|
new Thread(() -> {
|
|
//发送任务到redis
|
|
//发送任务到redis
|
|
sender(healthEduArticlePatient);
|
|
sender(healthEduArticlePatient);
|
|
}).start();
|
|
}).start();
|
|
return new BaseResultModel();
|
|
return new BaseResultModel();
|
|
}catch (Exception e) {
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
error(e);
|
|
return new BaseResultModel(BaseResultModel.statusEm.opera_error.getCode(), BaseResultModel.statusEm.opera_error.getMessage() + ":" + e.getMessage());
|
|
return new BaseResultModel(BaseResultModel.statusEm.opera_error.getCode(), BaseResultModel.statusEm.opera_error.getMessage() + ":" + e.getMessage());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -217,13 +284,14 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
@ApiOperation("医生文章单个患者推送")
|
|
@ApiOperation("医生文章单个患者推送")
|
|
public BaseResultModel doctorSendArticleToSingle(
|
|
public BaseResultModel doctorSendArticleToSingle(
|
|
@ApiParam(name = "patientCode", value = "患者Code", required = true) @RequestParam(value = "patientCode", required = true) String patientCode,
|
|
@ApiParam(name = "patientCode", value = "患者Code", required = true) @RequestParam(value = "patientCode", required = true) String patientCode,
|
|
@ApiParam(name = "articleId", value = "文章ID", required = true) @RequestParam(value = "articleId", required = true) String articleId){
|
|
|
|
|
|
@ApiParam(name = "articleId", value = "文章ID", required = true) @RequestParam(value = "articleId", required = true) String articleId,
|
|
|
|
@ApiParam(name = "leaveWords", value = "医生留言", required = false) @RequestParam(value = "leaveWords", required = false) String leaveWords){
|
|
try {
|
|
try {
|
|
Set<String> patientSet = new HashSet<>(); //放入set中可以去重复
|
|
Set<String> patientSet = new HashSet<>(); //放入set中可以去重复
|
|
//得到需要发送的患者
|
|
//得到需要发送的患者
|
|
patientSet.add(patientCode);
|
|
patientSet.add(patientCode);
|
|
// jmJkEduArticleService.initPatients(patientSet,labelType,condition,groupType,teamId,getUID());
|
|
// jmJkEduArticleService.initPatients(patientSet,labelType,condition,groupType,teamId,getUID());
|
|
HealthEduArticlePatient healthEduArticlePatient = jmJkEduArticleService.saveArticle(patientSet, getUID(), 1,"", 0L, articleId);
|
|
|
|
|
|
HealthEduArticlePatient healthEduArticlePatient = jmJkEduArticleService.saveArticle(patientSet, getUID(), 1,"", 0L, articleId,leaveWords);
|
|
//推送微信模板消息和发送im消息
|
|
//推送微信模板消息和发送im消息
|
|
new Thread(() -> {
|
|
new Thread(() -> {
|
|
//发送任务到redis
|
|
//发送任务到redis
|
|
@ -234,7 +302,7 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
return new BaseResultModel(BaseResultModel.statusEm.opera_error.getCode(), BaseResultModel.statusEm.opera_error.getMessage() + ":" + e.getMessage());
|
|
return new BaseResultModel(BaseResultModel.statusEm.opera_error.getCode(), BaseResultModel.statusEm.opera_error.getMessage() + ":" + e.getMessage());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "getArticalById",method = RequestMethod.GET)
|
|
@RequestMapping(value = "getArticalById",method = RequestMethod.GET)
|
|
@ApiOperation("获取文章详情")
|
|
@ApiOperation("获取文章详情")
|
|
public String getArticalById(@ApiParam(name = "articleId", value = "文章id",defaultValue = "1")
|
|
public String getArticalById(@ApiParam(name = "articleId", value = "文章id",defaultValue = "1")
|
|
@ -247,13 +315,12 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
return error(-1,"查询失败!");
|
|
return error(-1,"查询失败!");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* 医生端端文章列表
|
|
* 医生端端文章列表
|
|
* @param firstLevelCategoryId
|
|
* @param firstLevelCategoryId
|
|
* @param secondLevelCategoryId
|
|
* @param secondLevelCategoryId
|
|
* @param insertTimeStart
|
|
* @param insertTimeStart
|
|
* @param insertTimeEnds
|
|
|
|
* @param articlelevel
|
|
* @param articlelevel
|
|
* @param articleTitle
|
|
* @param articleTitle
|
|
* @return
|
|
* @return
|
|
@ -274,8 +341,8 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
@RequestParam(value = "articleTitle", required = false) String articleTitle,
|
|
@RequestParam(value = "articleTitle", required = false) String articleTitle,
|
|
@ApiParam(name = "currentUserRole", value = "当前登录的角色")
|
|
@ApiParam(name = "currentUserRole", value = "当前登录的角色")
|
|
@RequestParam(value = "currentUserRole", required = true) String currentUserRole,
|
|
@RequestParam(value = "currentUserRole", required = true) String currentUserRole,
|
|
@ApiParam(name = "currentUserRoleLevel", value = "当前登录的角色级别",defaultValue = "4")
|
|
|
|
@RequestParam(value = "currentUserRoleLevel", required = false ,defaultValue = "4")String currentUserRoleLevel,
|
|
|
|
|
|
@ApiParam(name = "currentUserRoleLevel", value = "当前登录的角色级别")
|
|
|
|
@RequestParam(value = "currentUserRoleLevel", required = false )String currentUserRoleLevel,
|
|
@ApiParam(name = "isAuthentication", value = "是否认证")
|
|
@ApiParam(name = "isAuthentication", value = "是否认证")
|
|
@RequestParam(value = "isAuthentication", required = false) String isAuthentication,
|
|
@RequestParam(value = "isAuthentication", required = false) String isAuthentication,
|
|
@ApiParam(name = "isMyArticle", value = "是否过滤我的文章")
|
|
@ApiParam(name = "isMyArticle", value = "是否过滤我的文章")
|
|
@ -285,19 +352,19 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
@ApiParam(name = "pageSize", value = "分页数")
|
|
@ApiParam(name = "pageSize", value = "分页数")
|
|
@RequestParam(value = "pageSize", required = true) Integer pageSize){
|
|
@RequestParam(value = "pageSize", required = true) Integer pageSize){
|
|
try {
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JSONObject response = jmJkEduArticleService.queryArticlePcList(firstLevelCategoryId,secondLevelCategoryId,insertTimeStart,insertTimeEnd,articlelevel,articleTitle,
|
|
|
|
getUID(),currentUserRole,currentUserRoleLevel,isAuthentication,isMyArticle,page,pageSize);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
com.alibaba.fastjson.JSONObject response = jmJkEduArticleService.queryArticlePcList(firstLevelCategoryId, secondLevelCategoryId, insertTimeStart, insertTimeEnd, articlelevel, articleTitle,
|
|
|
|
"0de7295862dd11e69faffa163e8aee56", currentUserRole, currentUserRoleLevel, isAuthentication, isMyArticle, page, pageSize,null);
|
|
|
|
|
|
return write(200,"查询成功!","data",response);
|
|
return write(200,"查询成功!","data",response);
|
|
} catch (Exception e){
|
|
} catch (Exception e){
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
return error(-1,"查询失败!");
|
|
return error(-1,"查询失败!");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "saveArticle", method = RequestMethod.POST)
|
|
@RequestMapping(value = "saveArticle", method = RequestMethod.POST)
|
|
@ApiOperation("添加文章")
|
|
@ApiOperation("添加文章")
|
|
public String saveArticle(@ApiParam(name = "articleId", value = "文章Id")
|
|
public String saveArticle(@ApiParam(name = "articleId", value = "文章Id")
|
|
@ -326,7 +393,7 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
@RequestParam(value = "currentUserRoleLevel", required = false ,defaultValue = "4")String currentUserRoleLevel,
|
|
@RequestParam(value = "currentUserRoleLevel", required = false ,defaultValue = "4")String currentUserRoleLevel,
|
|
@ApiParam(name = "userScope", value = "使用范围(1、全市使用,2、全区使用,3、全社区使用)")
|
|
@ApiParam(name = "userScope", value = "使用范围(1、全市使用,2、全区使用,3、全社区使用)")
|
|
@RequestParam(value = "userScope", required = true) Integer userScope){
|
|
@RequestParam(value = "userScope", required = true) Integer userScope){
|
|
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
jmJkEduArticleService.saveArticle(getUID(),articleTitle,articleType,articlelevel,secondLevelCategoryId,imageUrl,
|
|
jmJkEduArticleService.saveArticle(getUID(),articleTitle,articleType,articlelevel,secondLevelCategoryId,imageUrl,
|
|
secondLevelCategoryName,firstLevelCategoryId,firstLevelCategoryName,content,currentUserRole,currentUserRoleLevel,userScope,articleId);
|
|
secondLevelCategoryName,firstLevelCategoryId,firstLevelCategoryName,content,currentUserRole,currentUserRoleLevel,userScope,articleId);
|