package com.yeejoin.amos.boot.module.jcs.biz.service.impl;

import com.yeejoin.amos.boot.biz.common.service.IHomePageService;
import com.yeejoin.amos.boot.module.jcs.api.mapper.AlertCalledMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;


/**
 * @description:
 * @author: tw
 * @createDate: 2021/9/8
 */
@Service
public class DispatchTaskServiceImpl implements IHomePageService {

    //实现首页dispatchMap
    @Autowired
    AlertCalledMapper alertCalledMapper;
    private    AlertCalledMapper alertCalledMapper1;

    @PostConstruct
    public void init(){
        alertCalledMapper1=  alertCalledMapper;
    }

    @Override
    public Object getHomePageData() {
       Integer num= alertCalledMapper1.AlertCalledcount(0);
        return num;
    }
}
