提交 0971b50c 编写于 作者: JEECG低代码平台's avatar JEECG低代码平台

jeecgBoot v2.0版本发布

上级 17f99226
...@@ -116,17 +116,20 @@ ...@@ -116,17 +116,20 @@
},60000) },60000)
}, },
loadData (){ loadData (){
// 获取系统消息 try {
getAction(this.url.listCementByUser).then((res)=>{ // 获取系统消息
if(res.success){ getAction(this.url.listCementByUser).then((res) => {
this.announcement1 = res.result.anntMsgList; if (res.success) {
this.msg1Count = res.result.anntMsgTotal; this.announcement1 = res.result.anntMsgList;
this.msg1Title = "通知("+res.result.anntMsgTotal+")"; this.msg1Count = res.result.anntMsgTotal;
this.announcement2 = res.result.sysMsgList; this.msg1Title = "通知(" + res.result.anntMsgTotal + ")";
this.msg2Count = res.result.sysMsgTotal; this.announcement2 = res.result.sysMsgList;
this.msg2Title = "系统消息("+res.result.sysMsgTotal+")"; this.msg2Count = res.result.sysMsgTotal;
} this.msg2Title = "系统消息(" + res.result.sysMsgTotal + ")";
}); }
});
} catch (err) {
}
}, },
fetchNotice () { fetchNotice () {
if (this.loadding) { if (this.loadding) {
......
...@@ -2,6 +2,7 @@ package org.jeecg.modules.system.mapper; ...@@ -2,6 +2,7 @@ package org.jeecg.modules.system.mapper;
import java.util.List; import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.SysAnnouncement; import org.jeecg.modules.system.entity.SysAnnouncement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
...@@ -16,6 +17,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; ...@@ -16,6 +17,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
public interface SysAnnouncementMapper extends BaseMapper<SysAnnouncement> { public interface SysAnnouncementMapper extends BaseMapper<SysAnnouncement> {
List<SysAnnouncement> querySysCementListByUserId(Page<SysAnnouncement> page, String userId,String msgCategory); List<SysAnnouncement> querySysCementListByUserId(Page<SysAnnouncement> page, @Param("userId")String userId,@Param("msgCategory")String msgCategory);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册