ShiftMaskServiceImpl.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. package com.yijia.system.service.impl;
  2. import com.yijia.common.core.domain.entity.ShiftClass;
  3. import com.yijia.system.mapper.ShiftMaskMapper;
  4. import com.yijia.system.service.IShiftMaskService;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.stereotype.Service;
  7. import java.util.List;
  8. /**
  9. * 油站信息Service业务层处理
  10. *
  11. * @author qujia
  12. * @date 2020-12-08
  13. */
  14. @Service
  15. public class ShiftMaskServiceImpl implements IShiftMaskService
  16. {
  17. @Autowired
  18. private ShiftMaskMapper shiftMaskMapper;
  19. /**
  20. * 查询班次信息
  21. *
  22. * @param shiftClassId 班次信息ID
  23. * @return 班次信息
  24. */
  25. public ShiftClass selectShiftClassById(Long shiftClassId){
  26. return shiftMaskMapper.selectShiftClassById(shiftClassId);
  27. }
  28. /**
  29. * 查询班次信息
  30. *
  31. * @param shiftClass 等级信息
  32. * @return 班次信息集合
  33. */
  34. public List<ShiftClass> selectShiftClassList(ShiftClass shiftClass){
  35. return shiftMaskMapper.selectShiftClassList(shiftClass);
  36. }
  37. /**
  38. * 新增班次信息
  39. *
  40. * @param shiftClass 班次信息
  41. * @return 结果
  42. */
  43. public int insertShiftClass(ShiftClass shiftClass){
  44. return shiftMaskMapper.insertShiftClass(shiftClass);
  45. }
  46. /**
  47. * 修改班次信息
  48. *
  49. * @param shiftClass 班次信息
  50. * @return 结果
  51. */
  52. public int updateShiftClass(ShiftClass shiftClass){
  53. return shiftMaskMapper.updateShiftClass(shiftClass);
  54. }
  55. /**
  56. * 删除班次信息
  57. *
  58. * @param shiftClassId 班次信息ID
  59. * @return 结果
  60. */
  61. public int deleteShiftClassById(Long shiftClassId){
  62. return shiftMaskMapper.deleteShiftClassById(shiftClassId);
  63. }
  64. /**
  65. * 批量删除班次信息
  66. *
  67. * @param shiftClassIds 需要删除的数据ID
  68. * @return 结果
  69. */
  70. public int deleteShiftClassByIds(Long[] shiftClassIds){
  71. return shiftMaskMapper.deleteShiftClassByIds(shiftClassIds);
  72. }
  73. }