|
@@ -50,19 +50,26 @@ public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> impleme
|
|
|
@Override
|
|
@Override
|
|
|
public Page<NoticeVo> page(NoticePageParam noticePageParam) {
|
|
public Page<NoticeVo> page(NoticePageParam noticePageParam) {
|
|
|
List<String> typelist = null;
|
|
List<String> typelist = null;
|
|
|
|
|
+ noticePageParam.setUserId(StpLoginUserUtil.getLoginUser().getId());
|
|
|
if("0".equals(StpLoginUserUtil.getLoginUser().getEduIdentity())){
|
|
if("0".equals(StpLoginUserUtil.getLoginUser().getEduIdentity())){
|
|
|
typelist=Arrays.asList("3");
|
|
typelist=Arrays.asList("3");
|
|
|
}
|
|
}
|
|
|
if("1".equals(StpLoginUserUtil.getLoginUser().getEduIdentity())){
|
|
if("1".equals(StpLoginUserUtil.getLoginUser().getEduIdentity())){
|
|
|
- typelist= Arrays.asList("1","2","3");
|
|
|
|
|
- noticePageParam.setUserId(StpLoginUserUtil.getLoginUser().getId());
|
|
|
|
|
- }
|
|
|
|
|
- if("2".equals(StpLoginUserUtil.getLoginUser().getEduIdentity())){
|
|
|
|
|
- typelist= Arrays.asList("1","2","3");
|
|
|
|
|
|
|
+ typelist= Arrays.asList("1","2");
|
|
|
}
|
|
}
|
|
|
return noticeMapper.page(CommonPageRequest.defaultPage(), noticePageParam,typelist);
|
|
return noticeMapper.page(CommonPageRequest.defaultPage(), noticePageParam,typelist);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public Page<NoticeVo> readPage(NoticePageParam noticePageParam) {
|
|
|
|
|
+ List<String> typelist = Arrays.asList("1","2","3");
|
|
|
|
|
+ noticePageParam.setUserId(StpLoginUserUtil.getLoginUser().getId());
|
|
|
|
|
+ return noticeMapper.readPage(CommonPageRequest.defaultPage(), noticePageParam,typelist);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
@Override
|
|
|
public void add(NoticeAddParam noticeAddParam) {
|
|
public void add(NoticeAddParam noticeAddParam) {
|
|
@@ -122,4 +129,6 @@ public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> impleme
|
|
|
noticeMapper.cancel(noticeIdParam);
|
|
noticeMapper.cancel(noticeIdParam);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|