mirror of https://github.com/jeecgboot/jeecg-boot
				
				
				
			jeecgBoot v2.0版本发布
							parent
							
								
									17f992260d
								
							
						
					
					
						commit
						0971b50cb9
					
				| 
						 | 
				
			
			@ -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) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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…
	
		Reference in New Issue