OperateLogServiceImpl.java 1.46 KB
package com.diligrp.website.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.diligrp.website.domain.OperateLog;
import com.diligrp.website.manager.OperateLogManager;
import com.diligrp.website.service.OperateLogService;


/**
 * <B>Description</B> TODO <br />
 * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
 * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
 * <B>Company</B> 地利集团
 * @createTime 2014年6月19日 下午3:12:02
 * @author liujie
 */
@Service
public class OperateLogServiceImpl implements OperateLogService {
    @Resource
    private OperateLogManager operateLogManager;
    /* (non-Javadoc)
     * @see com.diligrp.website.service.OperateLogService#operateLog(com.diligrp.website.domain.OperateLog)
     */
    @Override
    public boolean saveOperateLog(OperateLog operateLog) {
        
        boolean  flag = operateLogManager.saveOperateLog(operateLog);
        return flag;
    }
    /* (non-Javadoc)
     * @see com.diligrp.website.service.OperateLogService#getOperateLog(java.lang.Long)
     */
    @Override
    public List<OperateLog> getOperateLog(Long dataId,Integer typeId) {
        OperateLog operateLog = new OperateLog ();
        operateLog.setOperateDataId(dataId);
        operateLog.setOperateType(typeId);
        return operateLogManager.getOperateLogInfoByDataId(operateLog);
    }
 

}