|
@ -62,7 +62,9 @@ public class HealthEduArticleController extends BaseController {
|
|
|
@ResponseBody
|
|
|
public String list(@RequestParam("id") long id, @RequestParam("pagesize") int pagesize, @RequestParam(required = true, value = "wheaType") int wheaType) {
|
|
|
try {
|
|
|
List<HealthEduArticlePatient> list = healthEduArticlePatientService.findByPatient(getUID(), wheaType, id, pagesize);
|
|
|
// List<HealthEduArticlePatient> list = healthEduArticlePatientService.findByPatient(getUID(), wheaType, id, pagesize);
|
|
|
// 增加判断是当前居民还是被代理人的文章列表
|
|
|
List<HealthEduArticlePatient> list = healthEduArticlePatientService.findByPatient(getRepUID(), wheaType, id, pagesize);
|
|
|
JSONArray jsonArray = new JSONArray();
|
|
|
Map<String, Doctor> docMap = new HashMap<>();
|
|
|
if (list != null) {
|
|
@ -189,18 +191,18 @@ public class HealthEduArticleController extends BaseController {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/readAllArticle",method = RequestMethod.GET)
|
|
|
@RequestMapping(value = "/readAllArticle", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
public String readAllArticle() {
|
|
|
try {
|
|
|
String patient = getUID();
|
|
|
healthEduArticleService.readAllArticle(patient);
|
|
|
return write(200,"更改状态成功!");
|
|
|
return write(200, "更改状态成功!");
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return invalidUserException(e,-1,"更改状态失败!");
|
|
|
return invalidUserException(e, -1, "更改状态失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|