/**
 * <p>Copyright:Copyright(c) 2016</p>
 * <p>Company:上海中信信息发展股份有限公司</p>
 * <p>类更新历史信息</p>
 * @author 张二伟
 * @date 2017-03-19 14:58
 * @todo
 */
package com.cesgroup.cesmonitor.service;

import java.util.Date;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cesgroup.cesmonitor.dao.UsageMapper;
import com.cesgroup.cesmonitor.entity.Usage;

/**
 * 统计
 *
 * @author
 * @date 2016-07-11
 *
 */
@Service("tjService")
public class TjService {

    @Autowired
    private UsageMapper usageMapper;

    protected Logger logger = LoggerFactory.getLogger(this.getClass());

    public List<Usage> listProblums() {
        return usageMapper.listProblums(new Date().getTime() / 1000 - 60 * 60 * 24 * 30, new Date().getTime() / 1000);
    }
}
