|
@ -253,7 +253,7 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
|
* @param firstLevelCategoryId
|
|
|
* @param secondLevelCategoryId
|
|
|
* @param insertTimeStart
|
|
|
* @param insertTimeEnd
|
|
|
* @param insertTimeEnds
|
|
|
* @param articlelevel
|
|
|
* @param articleTitle
|
|
|
* @return
|
|
@ -272,10 +272,10 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
|
@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 = "currentUserRole", value = "当前登录的角色")
|
|
|
@RequestParam(value = "currentUserRole", required = true) String currentUserRole,
|
|
|
@ApiParam(name = "currentUserRoleLevel", value = "当前登录的角色级别",defaultValue = "4")
|
|
|
@RequestParam(value = "currentUserRoleLevel", required = false ,defaultValue = "4")String currentUserRoleLevel,
|
|
|
@ApiParam(name = "isAuthentication", value = "是否认证")
|
|
|
@RequestParam(value = "isAuthentication", required = false) String isAuthentication,
|
|
|
@ApiParam(name = "isMyArticle", value = "是否过滤我的文章")
|
|
@ -287,8 +287,9 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
JSONObject response = jmJkEduArticleService.queryArticlePcList(firstLevelCategoryId,secondLevelCategoryId,insertTimeStart,insertTimeEnd,articlelevel,articleTitle,
|
|
|
getUID(),getCurrentRoleCode(),getCurrentRoleLevel(),isAuthentication,isMyArticle,page,pageSize);
|
|
|
getUID(),currentUserRole,currentUserRoleLevel,isAuthentication,isMyArticle,page,pageSize);
|
|
|
|
|
|
return write(200,"查询成功!","data",response);
|
|
|
} catch (Exception e){
|
|
@ -296,6 +297,45 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
|
return error(-1,"查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "saveArticle", method = RequestMethod.POST)
|
|
|
@ApiOperation("添加文章")
|
|
|
public String saveArticle(@ApiParam(name = "articleId", value = "文章Id")
|
|
|
@RequestParam(value = "articleId", required = false) String articleId,
|
|
|
@ApiParam(name = "articleTitle", value = "文章标题")
|
|
|
@RequestParam(value = "articleTitle", required = true) String articleTitle,
|
|
|
@ApiParam(name = "articleType", value = "文章类型")
|
|
|
@RequestParam(value = "articleType", required = true) String articleType,
|
|
|
@ApiParam(name = "articlelevel", value = "文章级别")
|
|
|
@RequestParam(value = "articlelevel", required = true) Integer articlelevel,
|
|
|
@ApiParam(name = "secondLevelCategoryId", value = "文章二级分类id")
|
|
|
@RequestParam(value = "secondLevelCategoryId", required = true) String secondLevelCategoryId,
|
|
|
@ApiParam(name = "secondLevelCategoryName", value = "文章二级分类名称")
|
|
|
@RequestParam(value = "secondLevelCategoryName", required = true) String secondLevelCategoryName,
|
|
|
@ApiParam(name = "firstLevelCategoryId", value = "文章一级分类id")
|
|
|
@RequestParam(value = "firstLevelCategoryId", required = true) String firstLevelCategoryId,
|
|
|
@ApiParam(name = "firstLevelCategoryName", value = "文章一级分类名称")
|
|
|
@RequestParam(value = "firstLevelCategoryName", required = true) String firstLevelCategoryName,
|
|
|
@ApiParam(name = "content", value = "文章内容")
|
|
|
@RequestParam(value = "content", required = true) String content,
|
|
|
@ApiParam(name = "imageUrl", value = "文章封面图片地址")
|
|
|
@RequestParam(value = "imageUrl", required = true) String imageUrl,
|
|
|
@ApiParam(name = "currentUserRole", value = "当前登录的角色")
|
|
|
@RequestParam(value = "currentUserRole", required = true) String currentUserRole,
|
|
|
@ApiParam(name = "currentUserRoleLevel", value = "当前登录的角色级别",defaultValue = "4")
|
|
|
@RequestParam(value = "currentUserRoleLevel", required = false ,defaultValue = "4")String currentUserRoleLevel,
|
|
|
@ApiParam(name = "userScope", value = "使用范围(1、全市使用,2、全区使用,3、全社区使用)")
|
|
|
@RequestParam(value = "userScope", required = true) Integer userScope){
|
|
|
|
|
|
try {
|
|
|
jmJkEduArticleService.saveArticle(getUID(),articleTitle,articleType,articlelevel,secondLevelCategoryId,imageUrl,
|
|
|
secondLevelCategoryName,firstLevelCategoryId,firstLevelCategoryName,content,currentUserRole,currentUserRoleLevel,userScope,articleId);
|
|
|
return success("添加成功!");
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return error(-1,"添加失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/*************************************************************************医生角色end***************************************************************************************************/
|