查询个人消息时,如果sys_user中appuserid为空,则根据id_card角色1求职者查询个人通知消息
This commit is contained in:
@@ -193,7 +193,7 @@ public class CmsNoticeController extends BaseController
|
||||
@GetMapping("/noticTotal")
|
||||
public AjaxResult getNoticTotal(Notice notice){
|
||||
if(!SecurityUtils.isLogin()){
|
||||
return AjaxResult.success("未登录!,返回为空");
|
||||
return AjaxResult.success("未登录!");
|
||||
}
|
||||
AppUser appUser=null;
|
||||
if(notice.getUserId()==null){
|
||||
@@ -205,7 +205,7 @@ public class CmsNoticeController extends BaseController
|
||||
appUser=appUserService.selectAppUserByUserId(appuserId);
|
||||
}
|
||||
if(appUser==null){
|
||||
error(HttpStatus.ERROR,"用户信息未完善,请完善身份证信息!");
|
||||
return success(new NoticeTotal());
|
||||
}else{
|
||||
notice.setUserId(appUser.getUserId());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user