SmartDataSourceLogMapper.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package com.template.mapper;
  2. import com.template.model.pojo.SmartDataSourceLog;
  3. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  4. import org.apache.ibatis.annotations.Select;
  5. import org.springframework.stereotype.Repository;
  6. import java.util.List;
  7. import java.util.Map;
  8. /**
  9. * <p>
  10. * 数据源操作日志 Mapper 接口
  11. * </p>
  12. *
  13. * @author ceshi
  14. * @since 2023-12-05
  15. */
  16. @Repository
  17. public interface SmartDataSourceLogMapper extends BaseMapper<SmartDataSourceLog> {
  18. @Select(" SELECT DISTINCT " +
  19. " log_action_name " +
  20. " FROM " +
  21. " smart_data_source_log " +
  22. " ORDER BY " +
  23. " log_action_name DESC "
  24. )
  25. List<String> queryDistinctActionName();
  26. @Select(" SELECT DISTINCT " +
  27. " log_action_people " +
  28. " FROM " +
  29. " smart_data_source_log " +
  30. " ORDER BY " +
  31. " log_action_people "
  32. )
  33. List<String> queryDistinctActionPeople();
  34. @Select(" SELECT DISTINCT " +
  35. " log_action_module " +
  36. " FROM " +
  37. " smart_data_source_log " +
  38. " ORDER BY " +
  39. " log_action_module "
  40. )
  41. List<String> queryDistinctActionModule();
  42. @Select(" SELECT DISTINCT " +
  43. " log_action_business " +
  44. " FROM " +
  45. " smart_data_source_log " +
  46. " ORDER BY " +
  47. " log_action_business DESC "
  48. )
  49. List<String> queryDistinctActionBusiness();
  50. }