ITextbookService.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. package com.xjrsoft.module.textbook.service;
  2. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  3. import com.github.yulichang.base.MPJBaseService;
  4. import com.xjrsoft.module.textbook.dto.AddTextbookClassWarehouseDto;
  5. import com.xjrsoft.module.textbook.dto.TextbookPageDto;
  6. import com.xjrsoft.module.textbook.entity.Textbook;
  7. import com.xjrsoft.module.textbook.vo.TextbookPageVo;
  8. import com.xjrsoft.module.textbook.vo.TextbookSubscriptionRecordVo;
  9. import com.xjrsoft.module.textbook.vo.TextbookVo;
  10. import java.util.List;
  11. /**
  12. * @title: 教材管理
  13. * @Author dzx
  14. * @Date: 2023-12-25
  15. * @Version 1.0
  16. */
  17. public interface ITextbookService extends MPJBaseService<Textbook> {
  18. /**
  19. * 新增
  20. *
  21. * @param textbook
  22. * @return
  23. */
  24. Boolean add(Textbook textbook);
  25. /**
  26. * 更新
  27. *
  28. * @param textbook
  29. * @return
  30. */
  31. Boolean update(Textbook textbook);
  32. /**
  33. * 删除
  34. *
  35. * @param ids
  36. * @return
  37. */
  38. Boolean delete(List<Long> ids);
  39. /**
  40. * 分页查询
  41. * @param page
  42. * @param dto
  43. * @return
  44. */
  45. Page<TextbookPageVo> getPage(Page<TextbookPageDto> page, TextbookPageDto dto);
  46. Boolean dataHandle(Long dataId);
  47. /**
  48. *
  49. * @param id
  50. * @return
  51. */
  52. List<TextbookSubscriptionRecordVo> subscriptionList(Long id);
  53. /**
  54. * 根据书号查询最新一条信息
  55. * @param issn
  56. * @return
  57. */
  58. TextbookVo getInfoByissn(String issn);
  59. /**
  60. * 教材管理入库
  61. * @param dto
  62. * @return
  63. */
  64. Boolean deliverWarehouse(AddTextbookClassWarehouseDto dto);
  65. }