PrinterService.java 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package com.fuint.common.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.fuint.framework.pagination.PaginationRequest;
  4. import com.fuint.framework.pagination.PaginationResponse;
  5. import com.fuint.repository.model.MtPrinter;
  6. import com.fuint.framework.exception.BusinessCheckException;
  7. import java.util.List;
  8. import java.util.Map;
  9. /**
  10. * 打印机业务接口
  11. *
  12. * Created by FSQ
  13. * CopyRight https://www.fuint.cn
  14. */
  15. public interface PrinterService extends IService<MtPrinter> {
  16. /**
  17. * 分页查询列表
  18. *
  19. * @param paginationRequest
  20. * @return
  21. */
  22. PaginationResponse<MtPrinter> queryPrinterListByPagination(PaginationRequest paginationRequest) throws BusinessCheckException;
  23. /**
  24. * 添加打印机
  25. *
  26. * @param mtPrinter
  27. * @throws BusinessCheckException
  28. * @return
  29. */
  30. MtPrinter addPrinter(MtPrinter mtPrinter) throws BusinessCheckException;
  31. /**
  32. * 根据ID获取打印机信息
  33. *
  34. * @param id ID
  35. * @throws BusinessCheckException
  36. * @return
  37. */
  38. MtPrinter queryPrinterById(Integer id) throws BusinessCheckException;
  39. /**
  40. * 根据ID删除打印机
  41. *
  42. * @param id ID
  43. * @param operator 操作人
  44. * @throws BusinessCheckException
  45. * @return
  46. */
  47. void deletePrinter(Integer id, String operator) throws BusinessCheckException;
  48. /**
  49. * 更新打印机
  50. * @param mtPrinter
  51. * @throws BusinessCheckException
  52. * @return
  53. * */
  54. MtPrinter updatePrinter(MtPrinter mtPrinter) throws BusinessCheckException;
  55. /**
  56. * 根据条件搜索打印机
  57. *
  58. * @param params 查询参数
  59. * @throws BusinessCheckException
  60. * @return
  61. * */
  62. List<MtPrinter> queryPrinterListByParams(Map<String, Object> params) throws BusinessCheckException;
  63. }