TXinyiMedicineConfServiceImpl.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. package com.slibra.business.service.impl;
  2. import java.util.List;
  3. import com.slibra.common.utils.DateUtils;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.stereotype.Service;
  6. import com.slibra.business.mapper.TXinyiMedicineConfMapper;
  7. import com.slibra.business.domain.TXinyiMedicineConf;
  8. import com.slibra.business.service.ITXinyiMedicineConfService;
  9. /**
  10. * 投药控制Service业务层处理
  11. *
  12. * @author slibra
  13. * @date 2024-09-13
  14. */
  15. @Service
  16. public class TXinyiMedicineConfServiceImpl implements ITXinyiMedicineConfService
  17. {
  18. @Autowired
  19. private TXinyiMedicineConfMapper tXinyiMedicineConfMapper;
  20. /**
  21. * 查询投药控制
  22. *
  23. * @param id 投药控制主键
  24. * @return 投药控制
  25. */
  26. @Override
  27. public TXinyiMedicineConf selectTXinyiMedicineConfById(Long id)
  28. {
  29. return tXinyiMedicineConfMapper.selectTXinyiMedicineConfById(id);
  30. }
  31. /**
  32. * 查询投药控制列表
  33. *
  34. * @param tXinyiMedicineConf 投药控制
  35. * @return 投药控制
  36. */
  37. @Override
  38. public List<TXinyiMedicineConf> selectTXinyiMedicineConfList(TXinyiMedicineConf tXinyiMedicineConf)
  39. {
  40. return tXinyiMedicineConfMapper.selectTXinyiMedicineConfList(tXinyiMedicineConf);
  41. }
  42. /**
  43. * 新增投药控制
  44. *
  45. * @param tXinyiMedicineConf 投药控制
  46. * @return 结果
  47. */
  48. @Override
  49. public int insertTXinyiMedicineConf(TXinyiMedicineConf tXinyiMedicineConf)
  50. {
  51. tXinyiMedicineConf.setCreateTime(DateUtils.getNowDate());
  52. return tXinyiMedicineConfMapper.insertTXinyiMedicineConf(tXinyiMedicineConf);
  53. }
  54. /**
  55. * 修改投药控制
  56. *
  57. * @param tXinyiMedicineConf 投药控制
  58. * @return 结果
  59. */
  60. @Override
  61. public int updateTXinyiMedicineConf(TXinyiMedicineConf tXinyiMedicineConf)
  62. {
  63. tXinyiMedicineConf.setUpdateTime(DateUtils.getNowDate());
  64. return tXinyiMedicineConfMapper.updateTXinyiMedicineConf(tXinyiMedicineConf);
  65. }
  66. /**
  67. * 批量删除投药控制
  68. *
  69. * @param ids 需要删除的投药控制主键
  70. * @return 结果
  71. */
  72. @Override
  73. public int deleteTXinyiMedicineConfByIds(Long[] ids)
  74. {
  75. return tXinyiMedicineConfMapper.deleteTXinyiMedicineConfByIds(ids);
  76. }
  77. /**
  78. * 删除投药控制信息
  79. *
  80. * @param id 投药控制主键
  81. * @return 结果
  82. */
  83. @Override
  84. public int deleteTXinyiMedicineConfById(Long id)
  85. {
  86. return tXinyiMedicineConfMapper.deleteTXinyiMedicineConfById(id);
  87. }
  88. }