SysOperLogServiceImpl.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. {
  16. @Autowired
  17. private SysOperLogMapper operLogMapper;
  18. /**
  19. * 新增操作日志
  20. *
  21. * @param operLog 操作日志对象
  22. */
  23. @Override
  24. public void insertOperlog(SysOperLog operLog)
  25. {
  26. operLogMapper.insertOperlog(operLog);
  27. }
  28. /**
  29. * 查询系统操作日志集合
  30. *
  31. * @param operLog 操作日志对象
  32. * @return 操作日志集合
  33. */
  34. @Override
  35. public List<SysOperLog> selectOperLogList(SysOperLog operLog)
  36. {
  37. return operLogMapper.selectOperLogList(operLog);
  38. }
  39. /**
  40. * 批量删除系统操作日志
  41. *
  42. * @param operIds 需要删除的操作日志ID
  43. * @return 结果
  44. */
  45. @Override
  46. public int deleteOperLogByIds(Long[] operIds)
  47. {
  48. return operLogMapper.deleteOperLogByIds(operIds);
  49. }
  50. /**
  51. * 查询操作日志详细
  52. *
  53. * @param operId 操作ID
  54. * @return 操作日志对象
  55. */
  56. @Override
  57. public SysOperLog selectOperLogById(Long operId)
  58. {
  59. return operLogMapper.selectOperLogById(operId);
  60. }
  61. /**
  62. * 清空操作日志
  63. */
  64. @Override
  65. public void cleanOperLog()
  66. {
  67. operLogMapper.cleanOperLog();
  68. }
  69. }