OperateLogServiceImpl.java
1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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);
}
}