AddOnDeptServiceImpl.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. package com.ruoyi.sim.service.impl;
  2. import java.util.List;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.stereotype.Service;
  5. import com.ruoyi.sim.mapper.AddOnDeptMapper;
  6. import com.ruoyi.sim.domain.AddOnDept;
  7. import com.ruoyi.sim.service.IAddOnDeptService;
  8. /**
  9. * 部门附加Service业务层处理
  10. *
  11. * @author tom
  12. * @date 2024-12-13
  13. */
  14. @Service
  15. public class AddOnDeptServiceImpl implements IAddOnDeptService {
  16. @Autowired
  17. private AddOnDeptMapper addOnDeptMapper;
  18. /**
  19. * 查询部门附加
  20. *
  21. * @param deptId 部门附加主键
  22. * @return 部门附加
  23. */
  24. @Override
  25. public AddOnDept selectAddOnDeptByDeptId(Long deptId) {
  26. return addOnDeptMapper.selectAddOnDeptByDeptId(deptId);
  27. }
  28. /**
  29. * 查询部门附加列表
  30. *
  31. * @param addOnDept 部门附加
  32. * @return 部门附加
  33. */
  34. @Override
  35. public List<AddOnDept> selectAddOnDeptList(AddOnDept addOnDept) {
  36. return addOnDeptMapper.selectAddOnDeptList(addOnDept);
  37. }
  38. /**
  39. * 新增部门附加
  40. *
  41. * @param addOnDept 部门附加
  42. * @return 结果
  43. */
  44. @Override
  45. public int insertAddOnDept(AddOnDept addOnDept) {
  46. return addOnDeptMapper.insertAddOnDept(addOnDept);
  47. }
  48. /**
  49. * 修改部门附加
  50. *
  51. * @param addOnDept 部门附加
  52. * @return 结果
  53. */
  54. @Override
  55. public int updateAddOnDept(AddOnDept addOnDept) {
  56. return addOnDeptMapper.updateAddOnDept(addOnDept);
  57. }
  58. /**
  59. * 批量删除部门附加
  60. *
  61. * @param deptIds 需要删除的部门附加主键
  62. * @return 结果
  63. */
  64. @Override
  65. public int deleteAddOnDeptByDeptIds(Long[] deptIds) {
  66. return addOnDeptMapper.deleteAddOnDeptByDeptIds(deptIds);
  67. }
  68. /**
  69. * 删除部门附加信息
  70. *
  71. * @param deptId 部门附加主键
  72. * @return 结果
  73. */
  74. @Override
  75. public int deleteAddOnDeptByDeptId(Long deptId) {
  76. return addOnDeptMapper.deleteAddOnDeptByDeptId(deptId);
  77. }
  78. }