|
@@ -103,6 +103,19 @@ public class XiaoyuanNoticeServiceImpl implements IXiaoyuanNoticeService {
|
|
|
return xiaoyuanNoticeMapper.selectXiaoyuanNoticeMyList(xiaoyuanNotice);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 我的收藏
|
|
|
+ * @param xiaoyuanNotice
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public List<XiaoyuanNotice> myCollect(XiaoyuanNotice xiaoyuanNotice) {
|
|
|
+ SysUser user = SecurityUtils.getLoginUser().getUser();
|
|
|
+ Long userId = user.getUserId();
|
|
|
+ xiaoyuanNotice.setCollect("\"userId\":"+userId);
|
|
|
+ return xiaoyuanNoticeMapper.selectXiaoyuanNoticeByMyCollect(xiaoyuanNotice);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 新增校园新闻
|
|
|
*
|