RobotOpsScreenThemeConfigServiceImpl.java 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. package com.ruoyi.base.service.impl;
  2. import java.util.List;
  3. import com.ruoyi.common.utils.DateUtils;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.stereotype.Service;
  6. import com.ruoyi.base.mapper.RobotOpsScreenThemeConfigMapper;
  7. import com.ruoyi.base.domain.RobotOpsScreenThemeConfig;
  8. import com.ruoyi.base.service.IRobotOpsScreenThemeConfigService;
  9. /**
  10. * 展示主题配置Service业务层处理
  11. *
  12. * @author ruoyi
  13. * @date 2026-05-14
  14. */
  15. @Service
  16. public class RobotOpsScreenThemeConfigServiceImpl implements IRobotOpsScreenThemeConfigService
  17. {
  18. @Autowired
  19. private RobotOpsScreenThemeConfigMapper robotOpsScreenThemeConfigMapper;
  20. /**
  21. * 查询展示主题配置
  22. *
  23. * @param id 展示主题配置主键
  24. * @return 展示主题配置
  25. */
  26. @Override
  27. public RobotOpsScreenThemeConfig selectRobotOpsScreenThemeConfigById(Long id)
  28. {
  29. return robotOpsScreenThemeConfigMapper.selectRobotOpsScreenThemeConfigById(id);
  30. }
  31. /**
  32. * 根据配置标识查询展示主题配置
  33. *
  34. * @param configKey 配置标识
  35. * @return 展示主题配置
  36. */
  37. @Override
  38. public RobotOpsScreenThemeConfig selectRobotOpsScreenThemeConfigByConfigKey(String configKey)
  39. {
  40. return robotOpsScreenThemeConfigMapper.selectRobotOpsScreenThemeConfigByConfigKey(configKey);
  41. }
  42. /**
  43. * 查询展示主题配置列表
  44. *
  45. * @param robotOpsScreenThemeConfig 展示主题配置
  46. * @return 展示主题配置
  47. */
  48. @Override
  49. public List<RobotOpsScreenThemeConfig> selectRobotOpsScreenThemeConfigList(RobotOpsScreenThemeConfig robotOpsScreenThemeConfig)
  50. {
  51. return robotOpsScreenThemeConfigMapper.selectRobotOpsScreenThemeConfigList(robotOpsScreenThemeConfig);
  52. }
  53. /**
  54. * 新增展示主题配置
  55. *
  56. * @param robotOpsScreenThemeConfig 展示主题配置
  57. * @return 结果
  58. */
  59. @Override
  60. public int insertRobotOpsScreenThemeConfig(RobotOpsScreenThemeConfig robotOpsScreenThemeConfig)
  61. {
  62. robotOpsScreenThemeConfig.setCreateTime(DateUtils.getNowDate());
  63. return robotOpsScreenThemeConfigMapper.insertRobotOpsScreenThemeConfig(robotOpsScreenThemeConfig);
  64. }
  65. /**
  66. * 修改展示主题配置
  67. *
  68. * @param robotOpsScreenThemeConfig 展示主题配置
  69. * @return 结果
  70. */
  71. @Override
  72. public int updateRobotOpsScreenThemeConfig(RobotOpsScreenThemeConfig robotOpsScreenThemeConfig)
  73. {
  74. robotOpsScreenThemeConfig.setUpdateTime(DateUtils.getNowDate());
  75. return robotOpsScreenThemeConfigMapper.updateRobotOpsScreenThemeConfig(robotOpsScreenThemeConfig);
  76. }
  77. /**
  78. * 批量删除展示主题配置
  79. *
  80. * @param ids 需要删除的展示主题配置主键
  81. * @return 结果
  82. */
  83. @Override
  84. public int deleteRobotOpsScreenThemeConfigByIds(Long[] ids)
  85. {
  86. return robotOpsScreenThemeConfigMapper.deleteRobotOpsScreenThemeConfigByIds(ids);
  87. }
  88. /**
  89. * 删除展示主题配置信息
  90. *
  91. * @param id 展示主题配置主键
  92. * @return 结果
  93. */
  94. @Override
  95. public int deleteRobotOpsScreenThemeConfigById(Long id)
  96. {
  97. return robotOpsScreenThemeConfigMapper.deleteRobotOpsScreenThemeConfigById(id);
  98. }
  99. }