IHsCanteenOrderService.java 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. package com.willalp.canteen.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.willalp.canteen.domain.HsCanteenOrder;
  4. import com.willalp.canteen.domain.resp.CustomGetOrderResp;
  5. import com.willalp.canteen.domain.vo.CustomGetOrderVo;
  6. import com.willalp.canteen.domain.vo.MenuCountVo;
  7. import com.willalp.common.core.domain.AjaxResult;
  8. import java.util.List;
  9. import java.util.Map;
  10. /**
  11. * 食堂订单Service接口
  12. *
  13. * @author songyu
  14. * @date 2021-12-03
  15. */
  16. public interface IHsCanteenOrderService extends IService<HsCanteenOrder> {
  17. /**
  18. * 后台下单
  19. *
  20. * @param order
  21. * @return
  22. */
  23. boolean payMiwp(HsCanteenOrder order);
  24. /**
  25. *
  26. * @return
  27. * @param menuCode
  28. */
  29. Object jcdStat(String menuCode);
  30. /**
  31. * 月度就餐地统计
  32. *
  33. * @return
  34. * @param year
  35. * @param month
  36. */
  37. Object jcdMonthStat(int year,int month);
  38. /**
  39. * 获取该菜单每人菜品和数量
  40. *
  41. * @param menuCode
  42. * @return
  43. */
  44. List<MenuCountVo> getTheMenuItemsAndQuantitiesPerPerson(String menuCode);
  45. /**
  46. * 查询食堂订单
  47. *
  48. * @param orderId 食堂订单主键
  49. * @return 食堂订单
  50. */
  51. public HsCanteenOrder selectHsCanteenOrderByOrderId(String orderId);
  52. /**
  53. * 查询食堂订单列表
  54. *
  55. * @param hsCanteenOrder 食堂订单
  56. * @return 食堂订单集合
  57. */
  58. public List<HsCanteenOrder> selectHsCanteenOrderList(HsCanteenOrder hsCanteenOrder);
  59. /**
  60. * 作废食堂订单
  61. *
  62. * @param hsCanteenOrder
  63. * @return
  64. */
  65. public AjaxResult getBack(HsCanteenOrder hsCanteenOrder);
  66. /**
  67. * 待取餐订单
  68. *
  69. * @param customGetOrderVo
  70. * @return
  71. */
  72. public List<CustomGetOrderResp> getOrderNow(CustomGetOrderVo customGetOrderVo);
  73. /**
  74. * 获取当前时间可取订单
  75. * @param customGetOrderVo
  76. * @return
  77. */
  78. CustomGetOrderResp getMenuNow(CustomGetOrderVo customGetOrderVo);
  79. /**
  80. * 近一月订单
  81. *
  82. * @param hsCanteenOrder
  83. * @return
  84. */
  85. public List<HsCanteenOrder> selectHsCanteenOrderLists(HsCanteenOrder hsCanteenOrder);
  86. /**
  87. * 首页金额总额
  88. *
  89. * @param hsCanteenOrder
  90. * @return
  91. */
  92. public String getSumpay(HsCanteenOrder hsCanteenOrder);
  93. /**
  94. * 首页订单总数
  95. *
  96. * @param hsCanteenOrder
  97. * @return
  98. */
  99. public String getSumOrderNum(HsCanteenOrder hsCanteenOrder);
  100. public void checkOrderTotal(HsCanteenOrder hsCanteenOrder);
  101. /**
  102. * 消费记录打印
  103. *
  104. * @param params
  105. * @return
  106. */
  107. public List<Map<String, Object>> getConsumeReport(Map<String, Object> params);
  108. /**
  109. * 今日未下单用户
  110. *
  111. * @return
  112. */
  113. List<HsCanteenOrder> todayNotOrderUser();
  114. }