|
@ -102,7 +102,7 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
if(StringUtils.isEmpty(currentRoleLevel)){
|
|
if(StringUtils.isEmpty(currentRoleLevel)){
|
|
currentRoleLevel = getCurrentRoleLevel();
|
|
currentRoleLevel = getCurrentRoleLevel();
|
|
}
|
|
}
|
|
List<HealthEduArticlePatientModel> eduArticlePatients = jmJkEduArticleService.pushArticleList(page,pagesize,getUID(),firstLevelCategoryId,myArticle,sendType,currentRoleCode,currentRoleLevel);
|
|
|
|
|
|
List<HealthEduArticlePatientModel> eduArticlePatients = jmJkEduArticleService.pushArticleList(page, pagesize, getUID(),firstLevelCategoryId,secondLevelCategoryId,myArticle,sendType,currentRoleCode,currentRoleLevel,articleTitle,sendTimeStart,sendTimeEnd);
|
|
// Long count = jmJkEduArticleService.pushArticleListCount(getUID(),2);
|
|
// Long count = jmJkEduArticleService.pushArticleListCount(getUID(),2);
|
|
return new ResultPageListModel(
|
|
return new ResultPageListModel(
|
|
page,
|
|
page,
|
|
@ -114,6 +114,8 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "manageSendArticleToPatients", method = RequestMethod.POST)
|
|
@RequestMapping(value = "manageSendArticleToPatients", method = RequestMethod.POST)
|
|
@ApiOperation("卫计委(管理员)文章群推送")
|
|
@ApiOperation("卫计委(管理员)文章群推送")
|
|
public BaseResultModel manageSendArticleToPatients(
|
|
public BaseResultModel manageSendArticleToPatients(
|
|
@ -207,7 +209,6 @@ 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(
|
|
@RequestParam(value = "code") String code,
|
|
|
|
@RequestParam(value = "patient", required = false) String patient,
|
|
@RequestParam(value = "patient", required = false) String patient,
|
|
@RequestParam(value = "group", required = false, defaultValue = "") String group,
|
|
@RequestParam(value = "group", required = false, defaultValue = "") String group,
|
|
@RequestParam(value = "labelType", required = false) String labelType,
|
|
@RequestParam(value = "labelType", required = false) String labelType,
|
|
@ -215,13 +216,13 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
@RequestParam(value = "articleId", required = false) String articleId){
|
|
@RequestParam(value = "articleId", required = false) String articleId){
|
|
try {
|
|
try {
|
|
|
|
|
|
if (StringUtils.isEmpty(code)) {
|
|
|
|
|
|
if (StringUtils.isEmpty(articleId)) {
|
|
return error(-1,"请至少选择一篇文章!");
|
|
return error(-1,"请至少选择一篇文章!");
|
|
}
|
|
}
|
|
if (StringUtils.isEmpty(patient) && StringUtils.isEmpty(group)) {
|
|
if (StringUtils.isEmpty(patient) && StringUtils.isEmpty(group)) {
|
|
return error(-1,"请至少选择一个患者!");
|
|
return error(-1,"请至少选择一个患者!");
|
|
}
|
|
}
|
|
String[] articles = code.split(",");
|
|
|
|
|
|
String[] articles = articleId.split(",");
|
|
String[] patients = patient.split(",");
|
|
String[] patients = patient.split(",");
|
|
String[] groups = group.split(",");
|
|
String[] groups = group.split(",");
|
|
if (articles.length == 0) {
|
|
if (articles.length == 0) {
|
|
@ -264,7 +265,7 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "doctorSendArticleToPatients", method = RequestMethod.POST)
|
|
@RequestMapping(value = "doctorSendArticleToPatients", method = RequestMethod.POST)
|
|
@ApiOperation("医生文章群推送")
|
|
@ApiOperation("医生文章群推送")
|
|
public BaseResultModel doctorSendArticleToPatients(@RequestParam(value = "code") String code,
|
|
|
|
|
|
public BaseResultModel doctorSendArticleToPatients(
|
|
@RequestParam(value = "patient", required = false) String patient,
|
|
@RequestParam(value = "patient", required = false) String patient,
|
|
@RequestParam(value = "group", required = false, defaultValue = "") String group,
|
|
@RequestParam(value = "group", required = false, defaultValue = "") String group,
|
|
@RequestParam(value = "labelType", required = false) String labelType,
|
|
@RequestParam(value = "labelType", required = false) String labelType,
|
|
@ -275,13 +276,13 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
@RequestParam(value = "currentUserRoleLevel", required = false ,defaultValue = "4")String currentUserRoleLevel){
|
|
@RequestParam(value = "currentUserRoleLevel", required = false ,defaultValue = "4")String currentUserRoleLevel){
|
|
|
|
|
|
try {
|
|
try {
|
|
if (StringUtils.isEmpty(code)) {
|
|
|
|
|
|
if (StringUtils.isEmpty(articleId)) {
|
|
return new BaseResultModel("请至少选择一篇文章!");
|
|
return new BaseResultModel("请至少选择一篇文章!");
|
|
}
|
|
}
|
|
if (StringUtils.isEmpty(patient) && StringUtils.isEmpty(group)) {
|
|
if (StringUtils.isEmpty(patient) && StringUtils.isEmpty(group)) {
|
|
return new BaseResultModel("请至少选择一个患者!");
|
|
return new BaseResultModel("请至少选择一个患者!");
|
|
}
|
|
}
|
|
String[] articles = code.split(",");
|
|
|
|
|
|
String[] articles = articleId.split(",");
|
|
String[] patients = patient.split(",");
|
|
String[] patients = patient.split(",");
|
|
String[] groups = group.split(",");
|
|
String[] groups = group.split(",");
|
|
if (articles.length == 0) {
|
|
if (articles.length == 0) {
|
|
@ -315,6 +316,7 @@ public class DoctorJMJkEduArticleController extends BaseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "doctorSendArticleToSingle", method = RequestMethod.POST)
|
|
@RequestMapping(value = "doctorSendArticleToSingle", method = RequestMethod.POST)
|
|
@ApiOperation("医生文章单个患者推送")
|
|
@ApiOperation("医生文章单个患者推送")
|
|
public BaseResultModel doctorSendArticleToSingle(
|
|
public BaseResultModel doctorSendArticleToSingle(
|