MesDeviceFaultCateService.java 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. package com.jeesite.modules.mes.service;
  2. import com.jeesite.common.entity.Page;
  3. import com.jeesite.common.service.CrudService;
  4. import com.jeesite.modules.mes.dao.MesDeviceFaultCateDao;
  5. import com.jeesite.modules.mes.entity.MesDeviceFaultCate;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.stereotype.Service;
  8. import org.springframework.transaction.annotation.Transactional;
  9. import java.util.List;
  10. /**
  11. * 设备故障分类Service
  12. * @author hzd
  13. * @version 2024-07-23
  14. */
  15. @Service
  16. public class MesDeviceFaultCateService extends CrudService<MesDeviceFaultCateDao, MesDeviceFaultCate> {
  17. @Autowired
  18. private MesDeviceFaultCateDao mesDeviceFaultCateDao;
  19. /**
  20. * 获取单条数据
  21. * @param mesDeviceFaultCate
  22. * @return
  23. */
  24. @Override
  25. public MesDeviceFaultCate get(MesDeviceFaultCate mesDeviceFaultCate) {
  26. return super.get(mesDeviceFaultCate);
  27. }
  28. /**
  29. * 查询分页数据
  30. * @param mesDeviceFaultCate 查询条件
  31. * @param mesDeviceFaultCate.page 分页对象
  32. * @return
  33. */
  34. @Override
  35. public Page<MesDeviceFaultCate> findPage(MesDeviceFaultCate mesDeviceFaultCate) {
  36. return super.findPage(mesDeviceFaultCate);
  37. }
  38. /**
  39. * 查询列表数据
  40. * @param mesDeviceFaultCate
  41. * @return
  42. */
  43. @Override
  44. public List<MesDeviceFaultCate> findList(MesDeviceFaultCate mesDeviceFaultCate) {
  45. return super.findList(mesDeviceFaultCate);
  46. }
  47. /**
  48. * 保存数据(插入或更新)
  49. * @param mesDeviceFaultCate
  50. */
  51. @Override
  52. @Transactional
  53. public void save(MesDeviceFaultCate mesDeviceFaultCate) {
  54. super.save(mesDeviceFaultCate);
  55. }
  56. /**
  57. * 更新状态
  58. * @param mesDeviceFaultCate
  59. */
  60. @Override
  61. @Transactional
  62. public void updateStatus(MesDeviceFaultCate mesDeviceFaultCate) {
  63. super.updateStatus(mesDeviceFaultCate);
  64. }
  65. /**
  66. * 删除数据
  67. * @param mesDeviceFaultCate
  68. */
  69. @Override
  70. @Transactional
  71. public void delete(MesDeviceFaultCate mesDeviceFaultCate) {
  72. super.delete(mesDeviceFaultCate);
  73. }
  74. @Transactional
  75. public MesDeviceFaultCate findByTitle(String title) {
  76. return mesDeviceFaultCateDao.findByTitle(title);
  77. }
  78. }