Browse Source

jeecgBoot v2.0版本发布

pull/63/head^2
zhangdaihao 6 years ago
parent
commit
0971b50cb9
  1. 25
      ant-design-jeecg-vue/src/components/tools/HeaderNotice.vue
  2. 3
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysAnnouncementMapper.java

25
ant-design-jeecg-vue/src/components/tools/HeaderNotice.vue

@ -116,17 +116,20 @@
},60000)
},
loadData (){
// 获取系统消息
getAction(this.url.listCementByUser).then((res)=>{
if(res.success){
this.announcement1 = res.result.anntMsgList;
this.msg1Count = res.result.anntMsgTotal;
this.msg1Title = "通知("+res.result.anntMsgTotal+")";
this.announcement2 = res.result.sysMsgList;
this.msg2Count = res.result.sysMsgTotal;
this.msg2Title = "系统消息("+res.result.sysMsgTotal+")";
}
});
try {
// 获取系统消息
getAction(this.url.listCementByUser).then((res) => {
if (res.success) {
this.announcement1 = res.result.anntMsgList;
this.msg1Count = res.result.anntMsgTotal;
this.msg1Title = "通知(" + res.result.anntMsgTotal + ")";
this.announcement2 = res.result.sysMsgList;
this.msg2Count = res.result.sysMsgTotal;
this.msg2Title = "系统消息(" + res.result.sysMsgTotal + ")";
}
});
} catch (err) {
}
},
fetchNotice () {
if (this.loadding) {

3
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;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.SysAnnouncement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -16,6 +17,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
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);
}

Loading…
Cancel
Save