LogService.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package com.jsh.erp.service;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.baomidou.mybatisplus.extension.service.IService;
  4. import com.jsh.erp.datasource.entities.Log;
  5. import com.jsh.erp.datasource.vo.LogVo4List;
  6. import org.springframework.transaction.annotation.Transactional;
  7. import javax.servlet.http.HttpServletRequest;
  8. import java.util.List;
  9. public interface LogService extends IService<Log> {
  10. Log getLog(long id)throws Exception;
  11. List<Log> getLog()throws Exception;
  12. List<LogVo4List> select(String operation, String userInfo, String clientIp, String tenantLoginName, String tenantType,
  13. String beginTime, String endTime, String content)throws Exception;
  14. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  15. int insertLog(JSONObject obj, HttpServletRequest request) throws Exception;
  16. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  17. int updateLog(JSONObject obj, HttpServletRequest request)throws Exception;
  18. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  19. int deleteLog(Long id, HttpServletRequest request)throws Exception;
  20. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  21. int batchDeleteLog(String ids, HttpServletRequest request)throws Exception;
  22. void insertLog(String moduleName, String content, HttpServletRequest request)throws Exception;
  23. void insertLogWithUserId(Long userId, Long tenantId, String moduleName, String content, HttpServletRequest request)throws Exception;
  24. }