Commit 2767f13772b529584834f73bde0ed3ddc7d8ab98
1 parent
2dfcbb52
JEECG BOOT V2.0 版本发布
Showing
3 changed files
with
18 additions
and
12 deletions
README.md
... | ... | @@ -104,6 +104,8 @@ Jeecg-Boot快速开发平台,可以应用在任何J2EE项目的开发中,尤 |
104 | 104 | |
105 | 105 | - 入门必看: [http://jeecg-boot.mydoc.io/?t=345660](http://jeecg-boot.mydoc.io/?t=345660) |
106 | 106 | |
107 | +- 入门必看: [JeecgBoot常见问题大全](http://www.jeecg.org/forum.php?mod=viewthread&tid=7816&extra=page%3D1) | |
108 | + | |
107 | 109 | - QQ交流群 : 284271917 |
108 | 110 | |
109 | 111 | - 视频教程(视频有点老,以文档为准) : https://pan.baidu.com/s/1Il0TS50I70vH1AG1y40wtw 提取码:hok5 |
... | ... |
ant-design-jeecg-vue/src/components/tools/HeaderNotice.vue
... | ... | @@ -116,17 +116,20 @@ |
116 | 116 | },60000) |
117 | 117 | }, |
118 | 118 | loadData (){ |
119 | - // 获取系统消息 | |
120 | - getAction(this.url.listCementByUser).then((res)=>{ | |
121 | - if(res.success){ | |
122 | - this.announcement1 = res.result.anntMsgList; | |
123 | - this.msg1Count = res.result.anntMsgTotal; | |
124 | - this.msg1Title = "通知("+res.result.anntMsgTotal+")"; | |
125 | - this.announcement2 = res.result.sysMsgList; | |
126 | - this.msg2Count = res.result.sysMsgTotal; | |
127 | - this.msg2Title = "系统消息("+res.result.sysMsgTotal+")"; | |
128 | - } | |
129 | - }); | |
119 | + try { | |
120 | + // 获取系统消息 | |
121 | + getAction(this.url.listCementByUser).then((res) => { | |
122 | + if (res.success) { | |
123 | + this.announcement1 = res.result.anntMsgList; | |
124 | + this.msg1Count = res.result.anntMsgTotal; | |
125 | + this.msg1Title = "通知(" + res.result.anntMsgTotal + ")"; | |
126 | + this.announcement2 = res.result.sysMsgList; | |
127 | + this.msg2Count = res.result.sysMsgTotal; | |
128 | + this.msg2Title = "系统消息(" + res.result.sysMsgTotal + ")"; | |
129 | + } | |
130 | + }); | |
131 | + } catch (err) { | |
132 | + } | |
130 | 133 | }, |
131 | 134 | fetchNotice () { |
132 | 135 | if (this.loadding) { |
... | ... |
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysAnnouncementMapper.java
... | ... | @@ -2,6 +2,7 @@ package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | 3 | import java.util.List; |
4 | 4 | |
5 | +import org.apache.ibatis.annotations.Param; | |
5 | 6 | import org.jeecg.modules.system.entity.SysAnnouncement; |
6 | 7 | |
7 | 8 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
... | ... | @@ -16,6 +17,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
16 | 17 | public interface SysAnnouncementMapper extends BaseMapper<SysAnnouncement> { |
17 | 18 | |
18 | 19 | |
19 | - List<SysAnnouncement> querySysCementListByUserId(Page<SysAnnouncement> page, String userId,String msgCategory); | |
20 | + List<SysAnnouncement> querySysCementListByUserId(Page<SysAnnouncement> page, @Param("userId")String userId,@Param("msgCategory")String msgCategory); | |
20 | 21 | |
21 | 22 | } |
... | ... |