StudentRepairService.java 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. package com.ym.mec.biz.service;
  2. import com.ym.mec.biz.dal.dto.BasicUserDto;
  3. import com.ym.mec.biz.dal.dto.StudentGoodsSellDto;
  4. import com.ym.mec.biz.dal.entity.StudentGoodsSell;
  5. import com.ym.mec.biz.dal.entity.StudentPaymentOrder;
  6. import com.ym.mec.biz.dal.entity.StudentRepair;
  7. import com.ym.mec.biz.dal.page.RepairStudentQueryInfo;
  8. import com.ym.mec.common.page.PageInfo;
  9. import com.ym.mec.common.service.BaseService;
  10. import java.util.Map;
  11. public interface StudentRepairService extends BaseService<Integer, StudentRepair> {
  12. /**
  13. * 根据维修技师获取相应学生列表
  14. */
  15. PageInfo<BasicUserDto> getStudents(RepairStudentQueryInfo queryInfo);
  16. /**
  17. * 添加维修单
  18. * @param repairInfo
  19. * @return
  20. */
  21. Map addRepair(StudentRepair repairInfo) throws Exception;
  22. /**
  23. * 维修完成
  24. * @param id
  25. * @param description
  26. */
  27. void repairSuccess(Integer id, String description,Integer repairStatus);
  28. /**
  29. * 获取学生信息
  30. * @param studentId
  31. * @return
  32. */
  33. BasicUserDto getStudentInfo(Integer studentId);
  34. /**
  35. * 获取维修单详情
  36. * @param id
  37. * @return
  38. */
  39. StudentRepair getRepairInfo(Integer id);
  40. /**
  41. * 支付维修单
  42. * @param repairInfo
  43. * @return
  44. */
  45. Map payRepair(StudentRepair repairInfo) throws Exception;
  46. /**
  47. * 获取学生维修技师信息
  48. * @param studentId
  49. * @return
  50. */
  51. BasicUserDto getStudentRepairer(Integer studentId,Integer organId);
  52. /**
  53. * 支付回调
  54. * @param order
  55. */
  56. Boolean orderCallback(StudentPaymentOrder order);
  57. /**
  58. * @describe 添加商品销售订单
  59. * @apiNote 时光荏苒,认真工作的时间总是过得很快,而我、享受这一刻!
  60. * @author zouxuan
  61. * @date 2020/9/16
  62. * @time 13:47
  63. * @param studentGoodsSell:
  64. * @return java.util.Map
  65. */
  66. Map addGoodsSellOrder(StudentGoodsSell studentGoodsSell) throws Exception;
  67. /**
  68. * @describe 商品销售订单回调
  69. * @apiNote 时光荏苒,认真工作的时间总是过得很快,而我、享受这一刻!
  70. * @author zouxuan
  71. * @date 2020/9/16
  72. * @time 16:58
  73. * @param order:
  74. * @return void
  75. */
  76. void goodsSellOrderCallback(StudentPaymentOrder order);
  77. }