package com.neusoft.knowledge.sys.service.impl;

import com.neusoft.knowledge.sys.dao.LogInfoDao;
import com.neusoft.knowledge.sys.entity.LogInfoEntity;
import com.neusoft.knowledge.sys.service.LogInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Title:LogInfoServiceImpl.
 * @Content:com.neusoft.knowledge.service.modules.sys.service.impl.LogInfoServiceImpl
 * @Description:系统日志
 * @Author:Marklin
 * @Create-DateTime:2017-10-28 17:55
 * @Update-DateTime:2017-10-28 17:55
 * @Version:1.0version
 */
@Service("logInfoService")
public class LogInfoServiceImpl implements LogInfoService {
    @Autowired
    private LogInfoDao logInfoDao;

    @Override
    public LogInfoEntity queryObject(Long id) {
        return logInfoDao.queryObject(id);
    }

    @Override
    public List<LogInfoEntity> queryList(Map<String, Object> map) {
        return logInfoDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return logInfoDao.queryTotal(map);
    }

    @Override
    public void save(LogInfoEntity logInfo) {
      logInfoDao.save(logInfo);
    }

    @Override
    public void update(LogInfoEntity logInfo) {
      logInfoDao.update(logInfo);
    }

    @Override
    public void delete(Long id) {
     logInfoDao.delete(id);
    }

    @Override
    public void deleteBatch(Long[] ids) {
      logInfoDao.deleteBatch(ids);
    }
}
