SysOperLogServiceImpl.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package com.ruoyi.system.service.impl;
  2. import java.util.List;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.stereotype.Service;
  5. import com.ruoyi.system.domain.SysOperLog;
  6. import com.ruoyi.system.mapper.SysOperLogMapper;
  7. import com.ruoyi.system.service.ISysOperLogService;
  8. /**
  9. * 操作日志 服务层处理
  10. *
  11. * @author ruoyi
  12. */
  13. @Service
  14. public class SysOperLogServiceImpl implements ISysOperLogService {
  15. @Autowired
  16. private SysOperLogMapper operLogMapper;
  17. /**
  18. * 新增操作日志
  19. *
  20. * @param operLog 操作日志对象
  21. */
  22. @Override
  23. public void insertOperlog(SysOperLog operLog) {
  24. operLogMapper.insertOperlog(operLog);
  25. }
  26. /**
  27. * 查询系统操作日志集合
  28. *
  29. * @param operLog 操作日志对象
  30. * @return 操作日志集合
  31. */
  32. @Override
  33. public List<SysOperLog> selectOperLogList(SysOperLog operLog) {
  34. return operLogMapper.selectOperLogList(operLog);
  35. }
  36. /**
  37. * 查询操作日志详细
  38. *
  39. * @param operId 操作ID
  40. * @return 操作日志对象
  41. */
  42. @Override
  43. public SysOperLog selectOperLogById(Long operId) {
  44. return operLogMapper.selectOperLogById(operId);
  45. }
  46. }