@be-link/pos-cli-nodejs 1.0.20 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/package.json +1 -1
  2. package/.github/workflows/JMeter.yml +0 -92
  3. package/.husky/commit-msg +0 -4
  4. package/.versionrc +0 -22
  5. package/CHANGELOG.md +0 -586
  6. package/Makefile +0 -4
  7. package/ceshi.jmx +0 -326
  8. package/ci/index.ts +0 -73
  9. package/commitlint.config.js +0 -3
  10. package/dist/README.md +0 -40
  11. package/dist/package.json +0 -53
  12. package/docs/.nojekyll +0 -1
  13. package/docs/assets/highlight.css +0 -71
  14. package/docs/assets/main.js +0 -59
  15. package/docs/assets/navigation.js +0 -1
  16. package/docs/assets/search.js +0 -1
  17. package/docs/assets/style.css +0 -1383
  18. package/docs/classes/_internal_.OrderCoreService.html +0 -351
  19. package/docs/classes/_internal_.OrderFulfillService.html +0 -489
  20. package/docs/classes/_internal_.OrderJobService.html +0 -229
  21. package/docs/classes/_internal_.OrderNoteService.html +0 -177
  22. package/docs/classes/_internal_.QueryByCommodityService.html +0 -311
  23. package/docs/classes/_internal_.QueryByStoreService.html +0 -133
  24. package/docs/classes/_internal_.QueryByUserService.html +0 -283
  25. package/docs/classes/_internal_.QueryByWebService.html +0 -133
  26. package/docs/classes/_internal_.default.html +0 -82
  27. package/docs/enums/_internal_.Constants.ApplicablePeopleEnum.html +0 -90
  28. package/docs/enums/_internal_.Constants.ItineraryTypeEnum.html +0 -82
  29. package/docs/enums/_internal_.Constants.ModifyOperatorRoleEnum.html +0 -114
  30. package/docs/enums/_internal_.Constants.NoteStatusEnum.html +0 -82
  31. package/docs/enums/_internal_.Constants.NoteTypeEnum.html +0 -106
  32. package/docs/enums/_internal_.Constants.OperatorRoleEnum.html +0 -114
  33. package/docs/enums/_internal_.Constants.PayToolEnum.html +0 -82
  34. package/docs/enums/_internal_.Constants.PaymentTypeEnum.html +0 -98
  35. package/docs/enums/_internal_.Constants.PromotionTypeEnum.html +0 -82
  36. package/docs/enums/_internal_.Constants.PurchaseSkuStatusEnum.html +0 -82
  37. package/docs/enums/_internal_.Constants.ShuttleTypeEnum.html +0 -82
  38. package/docs/enums/_internal_.Constants.TradeOperatorRoleEnum.html +0 -98
  39. package/docs/enums/_internal_.Constants.TradeOrderStatusEnum.html +0 -146
  40. package/docs/enums/_internal_.Constants.TransportationTypeEnum.html +0 -114
  41. package/docs/enums/_internal_.QueryDataBlock.html +0 -121
  42. package/docs/index.html +0 -68
  43. package/docs/interfaces/_internal_.Content.html +0 -81
  44. package/docs/interfaces/_internal_.CostInclusionJson.html +0 -81
  45. package/docs/interfaces/_internal_.CouponSnapShotInfo.html +0 -133
  46. package/docs/interfaces/_internal_.CreditInfo.html +0 -73
  47. package/docs/interfaces/_internal_.IPositiveAttributes.html +0 -161
  48. package/docs/interfaces/_internal_.IPositiveChangeSkuRecord.html +0 -145
  49. package/docs/interfaces/_internal_.IPositiveItemInfo.html +0 -413
  50. package/docs/interfaces/_internal_.IPositiveOrder.html +0 -263
  51. package/docs/interfaces/_internal_.IPositivePaymentInfo.html +0 -153
  52. package/docs/interfaces/_internal_.IPositivePromotionInfo.html +0 -129
  53. package/docs/interfaces/_internal_.IPositiveSkuInfo.html +0 -332
  54. package/docs/interfaces/_internal_.IWxPaymentInfo.html +0 -95
  55. package/docs/interfaces/_internal_.ItinerarySchedule.html +0 -89
  56. package/docs/interfaces/_internal_.OrderCoreController.html +0 -321
  57. package/docs/interfaces/_internal_.OrderJobController.html +0 -201
  58. package/docs/interfaces/_internal_.OrderNoteController.html +0 -156
  59. package/docs/interfaces/_internal_.ProductDetail.html +0 -81
  60. package/docs/interfaces/_internal_.PurchasingInstruction.html +0 -81
  61. package/docs/interfaces/_internal_.QueryByCommodityController.html +0 -284
  62. package/docs/interfaces/_internal_.QueryByStoreController.html +0 -115
  63. package/docs/interfaces/_internal_.QueryByUserController.html +0 -258
  64. package/docs/interfaces/_internal_.QueryByWebController.html +0 -115
  65. package/docs/interfaces/_internal_.QueryDataBlockTypeMap.html +0 -125
  66. package/docs/interfaces/_internal_.SubContent.html +0 -81
  67. package/docs/interfaces/_internal_.addShuttleInfo.html +0 -129
  68. package/docs/interfaces/_internal_.aiBuildNoteInfo.html +0 -73
  69. package/docs/interfaces/_internal_.batchUpsertItineraryInfo.html +0 -202
  70. package/docs/interfaces/_internal_.bindTouristToOrder.html +0 -97
  71. package/docs/interfaces/_internal_.calculateUserConsumeInfo.html +0 -89
  72. package/docs/interfaces/_internal_.changeNoteStatus.html +0 -97
  73. package/docs/interfaces/_internal_.changeOrderContactInfo.html +0 -97
  74. package/docs/interfaces/_internal_.changeOrderSku.html +0 -105
  75. package/docs/interfaces/_internal_.confirmMealInfo.html +0 -81
  76. package/docs/interfaces/_internal_.createNote.html +0 -105
  77. package/docs/interfaces/_internal_.createScheduleNotice.html +0 -89
  78. package/docs/interfaces/_internal_.getItineraryCount.html +0 -73
  79. package/docs/interfaces/_internal_.getOrderById.html +0 -86
  80. package/docs/interfaces/_internal_.getOrderCount.html +0 -193
  81. package/docs/interfaces/_internal_.getPartyOrderCount.html +0 -97
  82. package/docs/interfaces/_internal_.getStoreOrderCount.html +0 -121
  83. package/docs/interfaces/_internal_.getTourismInfoByOrderId-1.html +0 -229
  84. package/docs/interfaces/_internal_.getTourismInfoByOrderId.html +0 -73
  85. package/docs/interfaces/_internal_.getUserOrderCount.html +0 -97
  86. package/docs/interfaces/_internal_.importPreCheck.html +0 -112
  87. package/docs/interfaces/_internal_.isOrderCanAddTourists.html +0 -73
  88. package/docs/interfaces/_internal_.markItineraryRead.html +0 -81
  89. package/docs/interfaces/_internal_.markOrderPurchaseInsurance.html +0 -73
  90. package/docs/interfaces/_internal_.markServiceNoticeAuth.html +0 -73
  91. package/docs/interfaces/_internal_.markServiceNoticeRead.html +0 -81
  92. package/docs/interfaces/_internal_.mgetUserOrderCountList-1.html +0 -54
  93. package/docs/interfaces/_internal_.mgetUserOrderCountList.html +0 -81
  94. package/docs/interfaces/_internal_.modifyOrderMealInfo.html +0 -81
  95. package/docs/interfaces/_internal_.multiSendSmsToTourist.html +0 -81
  96. package/docs/interfaces/_internal_.multiSendVoiceToTourist.html +0 -81
  97. package/docs/interfaces/_internal_.orderCreate-1.html +0 -122
  98. package/docs/interfaces/_internal_.orderCreate.html +0 -208
  99. package/docs/interfaces/_internal_.orderFulfillController.html +0 -452
  100. package/docs/interfaces/_internal_.orderPaid.html +0 -97
  101. package/docs/interfaces/_internal_.orderSettled.html +0 -89
  102. package/docs/interfaces/_internal_.platformReject.html +0 -97
  103. package/docs/interfaces/_internal_.preCheckTourists.html +0 -89
  104. package/docs/interfaces/_internal_.queryItineraryInfoByOrderIdList-1.html +0 -54
  105. package/docs/interfaces/_internal_.queryItineraryInfoByOrderIdList.html +0 -65
  106. package/docs/interfaces/_internal_.queryItineraryList-1.html +0 -81
  107. package/docs/interfaces/_internal_.queryItineraryList.html +0 -89
  108. package/docs/interfaces/_internal_.queryNoteByOrderIdList.html +0 -73
  109. package/docs/interfaces/_internal_.queryOrder.html +0 -102
  110. package/docs/interfaces/_internal_.queryOrderByIdList.html +0 -86
  111. package/docs/interfaces/_internal_.queryOrderBySkuIdList.html +0 -94
  112. package/docs/interfaces/_internal_.queryOrderChangeSkuRecords.html +0 -73
  113. package/docs/interfaces/_internal_.queryOrderList.html +0 -210
  114. package/docs/interfaces/_internal_.queryOrderMergeRecordByOrderId-1.html +0 -123
  115. package/docs/interfaces/_internal_.queryOrderMergeRecordByOrderId.html +0 -73
  116. package/docs/interfaces/_internal_.queryPartyOrderInfo-1.html +0 -81
  117. package/docs/interfaces/_internal_.queryPartyOrderInfo.html +0 -113
  118. package/docs/interfaces/_internal_.queryPeriodTradeOrderList-1.html +0 -89
  119. package/docs/interfaces/_internal_.queryPeriodTradeOrderList.html +0 -51
  120. package/docs/interfaces/_internal_.queryPeriodTradeOrderOperatorList-1.html +0 -137
  121. package/docs/interfaces/_internal_.queryPeriodTradeOrderOperatorList.html +0 -89
  122. package/docs/interfaces/_internal_.queryRollingSalesStatistics-1.html +0 -113
  123. package/docs/interfaces/_internal_.queryRollingSalesStatistics.html +0 -129
  124. package/docs/interfaces/_internal_.querySaleItem-1.html +0 -81
  125. package/docs/interfaces/_internal_.querySaleItem.html +0 -105
  126. package/docs/interfaces/_internal_.queryShuttleInfoByOrderId-1.html +0 -169
  127. package/docs/interfaces/_internal_.queryShuttleInfoByOrderId.html +0 -73
  128. package/docs/interfaces/_internal_.queryStoreOrderList.html +0 -165
  129. package/docs/interfaces/_internal_.querySubOrderListByRootOrderId.html +0 -94
  130. package/docs/interfaces/_internal_.queryTopSaleItem-1.html +0 -81
  131. package/docs/interfaces/_internal_.queryTopSaleItem.html +0 -97
  132. package/docs/interfaces/_internal_.queryTourismInfoInOrderIdList.html +0 -73
  133. package/docs/interfaces/_internal_.queryUnionIdListByTimeRange.html +0 -89
  134. package/docs/interfaces/_internal_.queryUserOrder.html +0 -153
  135. package/docs/interfaces/_internal_.sendOrderPaidNotification.html +0 -73
  136. package/docs/interfaces/_internal_.submittedToSupplier.html +0 -89
  137. package/docs/interfaces/_internal_.supplierConfirmed.html +0 -89
  138. package/docs/interfaces/_internal_.supplierRejected.html +0 -97
  139. package/docs/interfaces/_internal_.thirdOrderInfoConfirmed.html +0 -105
  140. package/docs/interfaces/_internal_.updateShuttleInfo.html +0 -129
  141. package/docs/interfaces/_internal_.updateTradeOrderRoomCount.html +0 -94
  142. package/docs/interfaces/_internal_.updateTradeOrderTouristsInfo.html +0 -139
  143. package/docs/modules/_internal_.Constants.html +0 -71
  144. package/docs/modules/_internal_.html +0 -180
  145. package/docs/modules.html +0 -62
  146. package/docs/types/_internal_.QueryDataRes.html +0 -56
  147. package/docs/types/_internal_.Record.html +0 -58
  148. package/docs/types/_internal_.importPreCheck-1.html +0 -66
  149. package/docs/types/_internal_.queryNoteByOrderIdList-1.html +0 -106
  150. package/docs/types/_internal_.queryTourismInfoInOrderIdList-1.html +0 -48
  151. package/docs/variables/PosConstants.html +0 -50
  152. package/docs/variables/orderCoreService.html +0 -47
  153. package/docs/variables/orderFulfillService.html +0 -47
  154. package/docs/variables/orderJobService.html +0 -47
  155. package/docs/variables/orderNoteService.html +0 -47
  156. package/docs/variables/queryByCommodityService.html +0 -47
  157. package/docs/variables/queryByStoreService.html +0 -47
  158. package/docs/variables/queryByUserService.html +0 -47
  159. package/docs/variables/queryByWebService.html +0 -47
  160. package/jest.config.js +0 -194
  161. package/src/errors/BizError.ts +0 -10
  162. package/src/errors/SystemError.ts +0 -10
  163. package/src/index.ts +0 -33
  164. package/src/pos/http.ts +0 -70
  165. package/src/pos/modules/dataMigrate/service.ts +0 -18
  166. package/src/pos/modules/dataMigrate/types.ts +0 -11
  167. package/src/pos/modules/orderCore/service.ts +0 -55
  168. package/src/pos/modules/orderCore/types.ts +0 -320
  169. package/src/pos/modules/orderFulfill/service.ts +0 -120
  170. package/src/pos/modules/orderFulfill/types.ts +0 -526
  171. package/src/pos/modules/orderJob/service.ts +0 -72
  172. package/src/pos/modules/orderJob/types.ts +0 -42
  173. package/src/pos/modules/orderNote/service.ts +0 -29
  174. package/src/pos/modules/orderNote/types.ts +0 -76
  175. package/src/pos/modules/orderQuery/commodity.ts +0 -59
  176. package/src/pos/modules/orderQuery/store.ts +0 -24
  177. package/src/pos/modules/orderQuery/supplier.ts +0 -34
  178. package/src/pos/modules/orderQuery/types.ts +0 -1126
  179. package/src/pos/modules/orderQuery/user.ts +0 -83
  180. package/src/pos/modules/orderQuery/web.ts +0 -26
  181. package/src/pos/modules/service.ts +0 -31
  182. package/src/types.ts +0 -1079
  183. package/src/utils/env.ts +0 -14
  184. package/src/utils/string.ts +0 -6
  185. package/tsconfig.json +0 -114
  186. package/typedoc.json +0 -15
  187. /package/{dist/errors → errors}/BizError.d.ts +0 -0
  188. /package/{dist/errors → errors}/BizError.js +0 -0
  189. /package/{dist/errors → errors}/SystemError.d.ts +0 -0
  190. /package/{dist/errors → errors}/SystemError.js +0 -0
  191. /package/{dist/index.d.ts → index.d.ts} +0 -0
  192. /package/{dist/index.js → index.js} +0 -0
  193. /package/{dist/pos → pos}/http.d.ts +0 -0
  194. /package/{dist/pos → pos}/http.js +0 -0
  195. /package/{dist/pos → pos}/modules/dataMigrate/service.d.ts +0 -0
  196. /package/{dist/pos → pos}/modules/dataMigrate/service.js +0 -0
  197. /package/{dist/pos → pos}/modules/dataMigrate/types.d.ts +0 -0
  198. /package/{dist/pos → pos}/modules/dataMigrate/types.js +0 -0
  199. /package/{dist/pos → pos}/modules/orderCore/service.d.ts +0 -0
  200. /package/{dist/pos → pos}/modules/orderCore/service.js +0 -0
  201. /package/{dist/pos → pos}/modules/orderCore/types.d.ts +0 -0
  202. /package/{dist/pos → pos}/modules/orderCore/types.js +0 -0
  203. /package/{dist/pos → pos}/modules/orderFulfill/service.d.ts +0 -0
  204. /package/{dist/pos → pos}/modules/orderFulfill/service.js +0 -0
  205. /package/{dist/pos → pos}/modules/orderFulfill/types.d.ts +0 -0
  206. /package/{dist/pos → pos}/modules/orderFulfill/types.js +0 -0
  207. /package/{dist/pos → pos}/modules/orderJob/service.d.ts +0 -0
  208. /package/{dist/pos → pos}/modules/orderJob/service.js +0 -0
  209. /package/{dist/pos → pos}/modules/orderJob/types.d.ts +0 -0
  210. /package/{dist/pos → pos}/modules/orderJob/types.js +0 -0
  211. /package/{dist/pos → pos}/modules/orderNote/service.d.ts +0 -0
  212. /package/{dist/pos → pos}/modules/orderNote/service.js +0 -0
  213. /package/{dist/pos → pos}/modules/orderNote/types.d.ts +0 -0
  214. /package/{dist/pos → pos}/modules/orderNote/types.js +0 -0
  215. /package/{dist/pos → pos}/modules/orderQuery/commodity.d.ts +0 -0
  216. /package/{dist/pos → pos}/modules/orderQuery/commodity.js +0 -0
  217. /package/{dist/pos → pos}/modules/orderQuery/store.d.ts +0 -0
  218. /package/{dist/pos → pos}/modules/orderQuery/store.js +0 -0
  219. /package/{dist/pos → pos}/modules/orderQuery/supplier.d.ts +0 -0
  220. /package/{dist/pos → pos}/modules/orderQuery/supplier.js +0 -0
  221. /package/{dist/pos → pos}/modules/orderQuery/types.d.ts +0 -0
  222. /package/{dist/pos → pos}/modules/orderQuery/types.js +0 -0
  223. /package/{dist/pos → pos}/modules/orderQuery/user.d.ts +0 -0
  224. /package/{dist/pos → pos}/modules/orderQuery/user.js +0 -0
  225. /package/{dist/pos → pos}/modules/orderQuery/web.d.ts +0 -0
  226. /package/{dist/pos → pos}/modules/orderQuery/web.js +0 -0
  227. /package/{dist/pos → pos}/modules/service.d.ts +0 -0
  228. /package/{dist/pos → pos}/modules/service.js +0 -0
  229. /package/{dist/types.d.ts → types.d.ts} +0 -0
  230. /package/{dist/types.js → types.js} +0 -0
  231. /package/{dist/utils → utils}/env.d.ts +0 -0
  232. /package/{dist/utils → utils}/env.js +0 -0
  233. /package/{dist/utils → utils}/string.d.ts +0 -0
  234. /package/{dist/utils → utils}/string.js +0 -0
@@ -1,1126 +0,0 @@
1
- import * as PosConstants from 'vitality-meta/enums/pos'
2
- import * as DTO from '../../../types'
3
-
4
- export namespace Service {
5
-
6
- export namespace Request {
7
- export interface getOrderById<K> {
8
- /** 订单id */
9
- id: string
10
- /** 需要查询的块 */
11
- needBlocks: K
12
- }
13
- export interface getUserOrderCount {
14
- /** 用户id */
15
- unionId: string
16
- /** 订单列表id */
17
- orderIdList?: string[]
18
- /** 订单状态列表 */
19
- statusList?: PosConstants.TradeOrderStatusEnum[]
20
- /** 二级类目 */
21
- categoryTwoList?: string[]
22
- /** 履约时间 */
23
- fulfillAt?: number
24
- /** skuId */
25
- skuIdList?: string[]
26
- /** 创建时间范围 */
27
- createdAtRange?: [number, number]
28
- /** 履约结束时间范围 */
29
- fulfillEndAtRange?: [number, number]
30
- }
31
- export interface getOrderInvoiceRequest {
32
- /** 开票状态 */
33
- invoiceStatus?: string
34
- /** 创建时间 */
35
- createdAt?: number;
36
- /** 开票方 */
37
- invoiceBase?: string
38
- page?: number
39
- limit?: number
40
- itemIds?: string[]
41
- tradeOrderId?: string
42
- categoryTwoList?: string[]
43
- /**排序 */
44
- sort?: {
45
- /**
46
- * 创建时间
47
- */
48
- createdAt?: 'ASC' | 'DESC'
49
- /**
50
- * 更新时间
51
- */
52
- updatedAt?: 'ASC' | 'DESC'
53
- }
54
- }
55
-
56
- export interface queryOrderByIdList<K> {
57
- /** 订单id列表 */
58
- idList: string[]
59
- /** 需要查询的块 */
60
- needBlocks: K
61
- }
62
- export interface mgetUserOrderCountList {
63
- /** 用户id列表 */
64
- unionIdList: string[]
65
- /** 订单状态列表 */
66
- statusList?: PosConstants.TradeOrderStatusEnum[]
67
- /** 二级类目 */
68
- categoryTwoList?: string[]
69
- /** 订单创建时间 */
70
- createdAtRange?: [number, number]
71
- /** 订单履约时间 */
72
- fulfillAtRange?: [number, number]
73
- }
74
- export interface queryUserOrder<K> {
75
- condition: {
76
- /** 用户id */
77
- unionId: string
78
- /** 订单状态列表 */
79
- statusList?: PosConstants.TradeOrderStatusEnum[]
80
- /** 二级类目 */
81
- categoryTwoList?: string[]
82
- /** 是否是会员订单 */
83
- isMemberOrder?: boolean
84
- /** 是否是主单 */
85
- isRootOrder?: boolean
86
- /** 是否排除已合并订单 */
87
- isExcludeMerged?: boolean
88
- /** 创建时间 */
89
- createdAtRange?: [number, number]
90
- /** skuId */
91
- skuIdList?: string[]
92
- /** 履约结束时间范围 */
93
- fulfillEndAtRange?: [number, number]
94
- /** 订单列表id */
95
- orderIdList?: string[]
96
- }
97
- /** 排序规则 */
98
- sort: {
99
- /** 订单创建时间 */
100
- createdAt?: 'ASC' | 'DESC'
101
- /** 订单支付时间 */
102
- paidAt?: 'ASC' | 'DESC'
103
- /** 完结时间 */
104
- completedAt?: 'ASC' | 'DESC'
105
- /** 履约时间 */
106
- fulfillAt?: 'ASC' | 'DESC'
107
- }
108
- /** 页面下标 */
109
- pageIndex: number
110
- /** 页面条数,最大500 */
111
- pageSize: number
112
- /** 需要查询的块 */
113
- needBlocks: K
114
- }
115
- export interface queryMemberUserOrder<K> {
116
- /** 用户id */
117
- unionId: string
118
- /** 订单状态列表 */
119
- statusList?: PosConstants.TradeOrderStatusEnum[]
120
- /** 需要查询的块 */
121
- needBlocks: K
122
- }
123
- export interface getUserResentCompleteOrder<K> {
124
- /** unionId */
125
- unionId: string
126
- /** 需要查询的块 */
127
- needBlocks: K
128
- }
129
- export interface queryTopSaleItem {
130
- /** 商品Id列表 */
131
- itemIdList: string[]
132
- /** 下单开始时间 */
133
- startTime: number
134
- /** 下单结束时间 */
135
- endTime: number
136
- /** 查询数量 */
137
- limit: number
138
- }
139
- export interface querySaleItem {
140
- /** 二级列表 */
141
- categoryTwoList: string[]
142
- /** 下单开始时间 */
143
- startTime: number
144
- /** 下单结束时间 */
145
- endTime: number
146
- /** 查询数量 */
147
- pageIndex: number
148
- /** 查询数量 */
149
- pageSize: number
150
- }
151
- export interface queryOrderInDepartureDate<K> {
152
- /** 开始出团日期 */
153
- startTime?: number
154
- /** 结束出团日期 */
155
- endTime?: number
156
- /** 返团时间范围 */
157
- fulfillEndAtRange?: [number, number];
158
- /** 订单状态列表 */
159
- statusList?: PosConstants.TradeOrderStatusEnum[]
160
- /** 二级类目列表 */
161
- categoryTwoList?: string[]
162
- /** 商品id */
163
- itemIdList?: string[]
164
- /** 页码. 如果不传就查询所有 */
165
- pageIndex?: number
166
- /** 页目条数 */
167
- pageSize?: number
168
- /** 排序规则 */
169
- sort?: {
170
- /** 出团日期 */
171
- fulfillAt?: 'ASC' | 'DESC'
172
- /** 支付时间 */
173
- paidAt?: 'ASC' | 'DESC'
174
- /** 订单创建时间 */
175
- createdAt?: 'ASC' | 'DESC'
176
- }
177
- /** 查询块 */
178
- needBlocks: K
179
- }
180
- export interface getNearestPaidOrder {
181
- /** unionId */
182
- unionId: string
183
- /** 二级类目列表 */
184
- categoryTwoList?: string[]
185
- }
186
- export interface querySubOrderList<K> {
187
- condition: {
188
- /** 主单id */
189
- rootOrderIdList: string[]
190
- /** 订单状态列表 */
191
- statusList?: PosConstants.TradeOrderStatusEnum[]
192
- /** 是否合并 */
193
- isMerged?: boolean
194
- }
195
- /** 需要查询的块 */
196
- needBlocks: K
197
- }
198
- export interface queryOrderBySkuIdList<K> {
199
- /** skuId列表 */
200
- skuIdList: string[]
201
- /** 履约时间 */
202
- fulfillAt?: number
203
- /** 履约时间比较条件 */
204
- fulfillAtComparer?: 'LT' | 'EQ' | 'GT' | 'LTE' | 'GTE'
205
- /** 订单状态列表 */
206
- statusList?: PosConstants.TradeOrderStatusEnum[]
207
- /** 需要查询的块 */
208
- needBlocks: K
209
- }
210
- export interface calculateUserConsumeInfo {
211
- /** 用户id */
212
- unionIdList: string[]
213
- /** 创建时间(开始) */
214
- startTime: number
215
- /** 创建时间(结束) */
216
- endTime: number
217
- }
218
- export interface queryUnionIdListByTimeRange {
219
- /** 创建时间(开始) */
220
- startTime: number
221
- /** 创建时间(结束) */
222
- endTime: number
223
- /** 订单状态列表 */
224
- statusList: PosConstants.TradeOrderStatusEnum[]
225
- }
226
- export interface queryItineraryList {
227
- /** 商品id列表 */
228
- itemIdList?: string[]
229
- /** 出团时间 */
230
- fulfillAt?: number
231
- /** 二级类目列表 */
232
- categoryTwoList?: string[]
233
- /** 页面下标 */
234
- pageIndex?: number
235
- /** 页面条数 */
236
- pageSize?: number
237
- }
238
- export interface getItineraryCount {
239
- /** 出行时间 */
240
- fulfillAt?: number
241
- /** 商品id列表 */
242
- itemIdList?: string[]
243
- /** 二级类目列表 */
244
- categoryTwoList?: string[]
245
- }
246
- export interface queryDepartureGroupList {
247
- /** 供应商id */
248
- supplierIdList?: string[]
249
- /** 商品id列表 */
250
- itemIdList?: string[]
251
- /** 履约时间 */
252
- fulfillAtRange?: [number, number]
253
- /** 返回时间 */
254
- fulfillEndAtRange?: [number, number]
255
- /** 二级类目列表 */
256
- categoryTwoList?: string[]
257
- /** 页面下标 */
258
- pageIndex?: number
259
- /** 页面条数 */
260
- pageSize?: number
261
- /** 排序 */
262
- sort?: {
263
- /** 出团时间 */
264
- fulfillAt?: 'ASC' | 'DESC'
265
- }
266
- }
267
- export interface getDepartureGroupCount {
268
- /** 供应商id */
269
- supplierIdList?: string[]
270
- /** 履约时间 */
271
- fulfillAtRange?: [number, number]
272
- /** 返回时间 */
273
- fulfillEndAtRange?: [number, number]
274
- /** 商品id列表 */
275
- itemIdList?: string[]
276
- /** 二级类目列表 */
277
- categoryTwoList?: string[]
278
- }
279
- export interface queryOrderMergeRecordByOrderId {
280
- /** 订单id */
281
- tradeOrderId: string
282
- }
283
- export interface queryPartyOrderInfo {
284
- /** 类目 */
285
- categoryTwo?: string
286
- /** 履约时间 */
287
- fulfillAt: number
288
- /** 履约时间比较条件, 大于等于, 小于, 等于 */
289
- fulfillAtComparer: 'GTE' | 'LT' | 'EQ'
290
- /** 商品Id列表 */
291
- itemIdList?: string[]
292
- /** 页面下标 */
293
- pageIndex?: number
294
- /** 页面条数 */
295
- pageSize?: number
296
- /** 订单状态 */
297
- statusList?: PosConstants.TradeOrderStatusEnum[]
298
- }
299
-
300
- export interface IQueryPartyOrderDetail<K> {
301
- /** 商品ID */
302
- itemId: string
303
- /** 履约时间 */
304
- fulfillAt: number
305
- /** 履约时间比较条件 */
306
- fulfillAtComparer: 'LT' | 'EQ' | 'GT' | 'LTE' | 'GTE'
307
- /** 订单状态列表 */
308
- statusList: PosConstants.TradeOrderStatusEnum[]
309
- /** 需要查询的块 */
310
- needBlocks: K
311
- /** 页码 */
312
- pageIndex?: number
313
- /** 条目数 */
314
- pageSize?: number
315
- }
316
-
317
- export interface getPartyOrderCount {
318
- /** 类目 */
319
- categoryTwo?: string
320
- /** 履约时间 */
321
- fulfillAt: number
322
- /** 履约时间比较条件, 大于等于, 小于, 等于 */
323
- fulfillAtComparer: 'GTE' | 'LT' | 'EQ'
324
- /** 商品ID列表 */
325
- itemIdList?: string[]
326
- /** 订单状态 */
327
- statusList?: PosConstants.TradeOrderStatusEnum[]
328
- }
329
- export interface queryOrderList<K> {
330
- /** 条件 */
331
- conditions: {
332
- /** 状态 */
333
- status?: string[]
334
- /** 购买人姓名 */
335
- contactName?: string
336
- /** 购买人手机号 */
337
- contactMobile?: string
338
- /** 出行人姓名 */
339
- tourismName?: string
340
- /** 出行人手机号 */
341
- tourismMobile?: string
342
- /** 商品列表 */
343
- itemIdList?: string[]
344
- /** sku列表 */
345
- skuIdList?: string[]
346
- /** 来源人 */
347
- fromUnionId?: string
348
- /** 二级类目 */
349
- categoryTwoList?: string[]
350
- /** 小队 */
351
- groupIndex?: number
352
- /** 订单Id列表 */
353
- tradeOrderIdList?: string[]
354
- /** 出团日期范围 */
355
- fulFillAtRange?: [number, number]
356
- /** 返程日期范围 */
357
- fulfillEndAtRange?: [number, number]
358
- /** 订单创建时间筛选 */
359
- createdAtRange?: [number, number]
360
- /** 用户身份 */
361
- userIdentity?: string
362
- /** 用户列表 */
363
- unionIdList?: string[]
364
- /** 门店列表 */
365
- storeIdList?: string[]
366
- /** 班车供应商 */
367
- shuttleBusSupplier?: string
368
- /** 是否是首次交易 */
369
- isFirstTradeOrder?: boolean
370
- /** 是否未完成备注 */
371
- isNotFinishedNote?: boolean
372
- /** 是否排除已合并的订单 */
373
- isExcludeMerged?: boolean
374
- /** 是否仅查询主单 */
375
- isRootOrder?: boolean
376
- /** 页面条数 */
377
- pageSize: number
378
- /** 页面下标 */
379
- pageIndex: number
380
- }
381
-
382
- /** 排序 */
383
- sort: {
384
- /** 订单创建时间 */
385
- createdAt?: 'ASC' | 'DESC'
386
- /** 订单支付时间 */
387
- paidAt?: 'ASC' | 'DESC'
388
- /** 完结时间 */
389
- completedAt?: 'ASC' | 'DESC'
390
- /** 履约时间 */
391
- fulfillAt?: 'ASC' | 'DESC'
392
- }
393
- /** 查询块 */
394
- needBlocks: K
395
- }
396
-
397
- export interface IQueryOrderForStatistics<K> {
398
- /** 条件 */
399
- conditions: {
400
- /** 状态 */
401
- status?: string[]
402
- /** 购买人姓名 */
403
- contactName?: string
404
- /** 购买人手机号 */
405
- contactMobile?: string
406
- /** 出行人姓名 */
407
- tourismName?: string
408
- /** 出行人手机号 */
409
- tourismMobile?: string
410
- /** 商品列表 */
411
- itemIdList?: string[]
412
- /** sku列表 */
413
- skuIdList?: string[]
414
- /** 来源人 */
415
- fromUnionId?: string
416
- /** 二级类目 */
417
- categoryTwoList?: string[]
418
- /** 小队 */
419
- groupIndex?: number
420
- /** 订单Id列表 */
421
- tradeOrderIdList?: string[]
422
- /** 出团日期范围 */
423
- fulFillAtRange?: [number, number]
424
- /** 订单创建时间筛选 */
425
- createdAtRange?: [number, number]
426
- /** 用户身份 */
427
- userIdentity?: string
428
- /** 用户列表 */
429
- unionIdList?: string[]
430
- /** 门店列表 */
431
- storeIdList?: string[]
432
- /** 班车供应商 */
433
- shuttleBusSupplier?: string
434
- /** 是否是首次交易 */
435
- isFirstTradeOrder?: boolean
436
- /** 是否未完成备注 */
437
- isNotFinishedNote?: boolean
438
- /** 是否排除已合并的订单 */
439
- isExcludeMerged?: boolean
440
- }
441
- /** 查询块 */
442
- needBlocks: K
443
- /** 查询条数 */
444
- pageSize?: number
445
- /** 查询页码 */
446
- pageIndex?: number
447
- }
448
-
449
- export interface IQueryOrderForStatisticsForSupplier<K> {
450
- /** 条件 */
451
- conditions: {
452
- /** id列表 */
453
- idList?: string[]
454
- /** 状态 */
455
- statusList?: string[]
456
- /** 购买人姓名 */
457
- contactName?: string
458
- /** 购买人手机号 */
459
- contactMobile?: string
460
- /** 二级类目 */
461
- categoryTwoList?: string[]
462
- /** 出团日期范围 */
463
- fulFillAtRange?: [number, number]
464
- /** 订单创建时间筛选 */
465
- createdAtRange?: [number, number]
466
- /** 供应商列表 */
467
- supplierIdList?: string[]
468
- /** 商品id */
469
- itemIdList?: string[]
470
- }
471
- /** 查询块 */
472
- needBlocks: K
473
- /** 查询条数 */
474
- pageSize?: number
475
- /** 查询页码 */
476
- pageIndex?: number
477
- }
478
-
479
- export interface queryStoreOrderList<K> {
480
- /** 条件 */
481
- conditions: {
482
- /** 状态 */
483
- statusList?: string[]
484
- /** 购买人姓名 */
485
- contactName?: string
486
- /** 购买人手机号 */
487
- contactMobile?: string
488
- /** 二级类目 */
489
- categoryTwoList?: string[]
490
- /** 出团日期范围 */
491
- fulFillAtRange?: [number, number]
492
- /** 订单创建时间筛选 */
493
- createdAtRange?: [number, number]
494
- /** 门店列表 */
495
- storeIdList: string[]
496
- /** 页面条数 */
497
- pageSize?: number
498
- /** 页面下标 */
499
- pageIndex?: number
500
- }
501
- /** 排序 */
502
- sort: {
503
- /** 订单创建时间 */
504
- createdAt?: 'ASC' | 'DESC'
505
- /** 订单支付时间 */
506
- paidAt?: 'ASC' | 'DESC'
507
- /** 完结时间 */
508
- completedAt?: 'ASC' | 'DESC'
509
- /** 履约时间 */
510
- fulfillAt?: 'ASC' | 'DESC'
511
- }
512
- /** 查询块 */
513
- needBlocks: K
514
- }
515
-
516
- export interface querySupplierOrderList<K> {
517
- /** 条件 */
518
- conditions: {
519
- /** id列表 */
520
- idList?: string[]
521
- /** 状态 */
522
- statusList?: string[]
523
- /** 购买人姓名 */
524
- contactName?: string
525
- /** 购买人手机号 */
526
- contactMobile?: string
527
- /** 二级类目 */
528
- categoryTwoList?: string[]
529
- /** 出团日期范围 */
530
- fulFillAtRange?: [number, number]
531
- /** 订单创建时间筛选 */
532
- createdAtRange?: [number, number]
533
- /** 供应商列表 */
534
- supplierIdList?: string[]
535
- /** 页面条数 */
536
- pageSize?: number
537
- /** 页面下标 */
538
- pageIndex?: number
539
- /** 商品id */
540
- itemIdList?: string[]
541
- }
542
- /** 排序 */
543
- sort: {
544
- /** 订单创建时间 */
545
- createdAt?: 'ASC' | 'DESC'
546
- /** 订单支付时间 */
547
- paidAt?: 'ASC' | 'DESC'
548
- /** 完结时间 */
549
- completedAt?: 'ASC' | 'DESC'
550
- /** 履约时间 */
551
- fulfillAt?: 'ASC' | 'DESC'
552
- }
553
- /** 查询块 */
554
- needBlocks: K
555
- }
556
- export interface queryPeriodTradeOrderList {
557
- /** 二级类目 */
558
- categoryTwo: string
559
- /** 起始时间 */
560
- startTime: number
561
- /** 结束时间 */
562
- endTime: number
563
- /** 页码 */
564
- pageIndex?: number
565
- /** 条目数 */
566
- pageSize?: number
567
- }
568
- export interface queryPeriodTradeOrderOperatorList {
569
- /** 二级类目 */
570
- categoryTwo: string
571
- /** 起始时间 */
572
- startTime: number
573
- /** 结束时间 */
574
- endTime: number
575
- /** 页码 */
576
- pageIndex?: number
577
- /** 条目数 */
578
- pageSize?: number
579
- }
580
- export interface queryRollingSalesStatistics {
581
- /** 页码 */
582
- pageIndex?: number
583
- /** 条目数 */
584
- pageSize?: number
585
- /** 商品id集合 */
586
- itemIdList?: string[]
587
- /** 下单起始时间 */
588
- startTime?: number
589
- /** 下单结束时间 */
590
- endTime?: number
591
- /** 履约开始时间 */
592
- fulfillStartTime?: number
593
- /** 履约结束时间 */
594
- fulfillEndTime?: number
595
- /** 商品类目列表 */
596
- categoryList?: string[]
597
- }
598
- export interface getRollingSalesStatisticsTotalAmount {
599
- /** 商品id列表 */
600
- itemIdList?: string[]
601
- /** 下单起始时间 */
602
- startTime?: number
603
- /** 下单结束时间 */
604
- endTime?: number
605
- /** 履约开始时间 */
606
- fulfillStartTime?: number
607
- /** 履约结束时间 */
608
- fulfillEndTime?: number
609
- /** 商品类目列表 */
610
- categoryList?: string[]
611
- }
612
- export interface getStoreOrderCount {
613
- /** 状态 */
614
- statusList?: string[]
615
- /** 购买人姓名 */
616
- contactName?: string
617
- /** 购买人手机号 */
618
- contactMobile?: string
619
- /** 二级类目 */
620
- categoryTwoList?: string[]
621
- /** 出团日期范围 */
622
- fulFillAtRange?: [number, number]
623
- /** 订单创建时间筛选 */
624
- createdAtRange?: [number, number]
625
- /** 门店列表 */
626
- storeIdList: string[]
627
- }
628
-
629
- export interface getSupplierOrderCount {
630
- /** id列表 */
631
- idList?: string[]
632
- /** 状态 */
633
- statusList?: string[]
634
- /** 购买人姓名 */
635
- contactName?: string
636
- /** 购买人手机号 */
637
- contactMobile?: string
638
- /** 二级类目 */
639
- categoryTwoList?: string[]
640
- /** 出团日期范围 */
641
- fulFillAtRange?: [number, number]
642
- /** 订单创建时间筛选 */
643
- createdAtRange?: [number, number]
644
- /** 供应商列表 */
645
- supplierIdList?: string[]
646
- /** 商品id */
647
- itemIdList?: string[]
648
- }
649
- export interface getOrderCount {
650
- /** 状态 */
651
- status?: string[]
652
- /** 购买人姓名 */
653
- contactName?: string
654
- /** 购买人手机号 */
655
- contactMobile?: string
656
- /** 出行人姓名 */
657
- tourismName?: string
658
- /** 出行人手机号 */
659
- tourismMobile?: string
660
- /** 商品列表 */
661
- itemIdList?: string[]
662
- /** skuIdList */
663
- skuIdList?: string[]
664
- /** 来源人 */
665
- fromUnionId?: string
666
- /** 二级类目 */
667
- categoryTwoList?: string[]
668
- /** 小队 */
669
- groupIndex?: number
670
- /** 订单Id列表 */
671
- tradeOrderIdList?: string[]
672
- /** 出团日期范围 */
673
- fulFillAtRange?: [number, number]
674
- /** 订单创建时间筛选 */
675
- createdAtRange?: [number, number]
676
- /** 用户身份 */
677
- userIdentity?: string
678
- /** 用户列表 */
679
- unionIdList?: string[]
680
- /** 门店列表 */
681
- storeIdList?: string[]
682
- /** 班车供应商 */
683
- shuttleBusSupplier?: string
684
- /** 是否是首次交易 */
685
- isFirstTradeOrder?: boolean
686
- /** 是否未完成备注 */
687
- isNotFinishedNote?: boolean
688
- /** 是否排除已合并的订单 */
689
- isExcludeMerged?: boolean
690
- /** 是否仅查询主单 */
691
- isRootOrder?: boolean
692
- }
693
- export interface queryRejectReasons {
694
- /** 订单Id */
695
- orderIdList: string[]
696
- }
697
-
698
- export interface IQueryItemSaleInfoInDays {
699
- categoryTwoList: string[]
700
- days: number
701
- pageSize?: number
702
- pageIndex?: number
703
- }
704
-
705
- export interface IQueryOrderOperateRecord {
706
- orderId: string
707
- }
708
-
709
- export interface IQueryItemOrderCountAndRejectCount {
710
- /** 商品ID */
711
- itemIdList: string[]
712
- /** 履约起始时间 */
713
- startTime: number
714
- /** 履约结束时间 */
715
- endTime: number
716
- }
717
-
718
- export interface mgetOrderQuantity {
719
- /** 订单id列表 */
720
- orderIdList: string[]
721
- /** 订单状态列表 */
722
- statusList?: PosConstants.TradeOrderStatusEnum[]
723
- }
724
- }
725
-
726
- export namespace Response {
727
- export interface mgetUserOrderCountList {
728
- /** 用户id: 数量 */
729
- [unionId: string]: number
730
- }
731
- export interface queryTopSaleItem {
732
- /** 商品Id */
733
- itemId: string
734
- /** 销量 */
735
- count: number
736
- }
737
- export interface querySaleItem {
738
- /** 商品Id */
739
- itemId: string
740
- /** 销量 */
741
- count: number
742
- }
743
- export interface queryItineraryList {
744
- /** 商品ID */
745
- itemId: string
746
- /** skuId */
747
- skuId: string
748
- /** 履约时间 */
749
- fulfillAt: number
750
- /** 小队名称 */
751
- groupName: string
752
- /** 订单数量 */
753
- orderCount: number
754
- /** 剩余份数 */
755
- skuRemainQuantity: number
756
- }
757
- export interface queryDepartureGroupList {
758
- /** 商品ID */
759
- itemId: string
760
- /** 履约时间 */
761
- fulfillAt: number
762
- /** 返团时间 */
763
- fulfillEndAt: number
764
- /** 订单数量 */
765
- orderCount: number
766
- /** 剩余份数 */
767
- skuRemainQuantity: number
768
- }
769
- export interface queryOrderMergeRecordByOrderId {
770
- /** 合并记录Id */
771
- _id: string
772
- /** 创建时间 */
773
- _createTime: number
774
- /** 更新时间 */
775
- _updateTime: number
776
- /** 目标订单Id */
777
- targetId: string
778
- /** 资源变更 */
779
- resources: {
780
- /** 资源类型 */
781
- type: string
782
- /** 变更前 */
783
- before: Record<string, any>
784
- /** 变更后 */
785
- after: Record<string, any>
786
- }[]
787
- }
788
- export interface queryPartyOrderInfo {
789
- /** 门店ID */
790
- storeId: string
791
- /** 商品ID */
792
- itemId: string
793
- /** 订单数量 */
794
- orderCount: number
795
- /** 出行时间 */
796
- departureDate: number
797
- /** 当前份数 */
798
- remainQuantity: number
799
- }
800
-
801
- export interface queryPeriodTradeOrderList {
802
- /** 商品Id */
803
- itemId: string
804
- /** 酒店Id */
805
- storeId: string
806
- /** 销量 */
807
- total: number
808
- }
809
- export interface queryPeriodTradeOrderOperatorList {
810
- /** 商品Id */
811
- itemId: string
812
- /** 订单号 */
813
- tradeOrderId: string
814
- /** 目标状态 */
815
- toStatus: string
816
- /** 起始状态 */
817
- fromStatus: string
818
- /** 操作人 */
819
- operator: string
820
- /** 操作人角色 */
821
- operatorRole: PosConstants.OperatorRoleEnum
822
- /** 操作时间 */
823
- _createTime: number
824
- /** 酒店 */
825
- storeId: string
826
- }
827
- export interface queryRollingSalesStatistics {
828
- list: {
829
- /** 商品ID */
830
- itemId: string
831
- /** 套餐名称 */
832
- comboName: string
833
- /** 适用人群 */
834
- applicablePeople: string
835
- /** 份数 */
836
- quantity: number
837
- /** gmv(实付金额. 不包含退款金额) */
838
- gmv: number
839
- /** 剩余金额 */
840
- remainAmount: number
841
- /** 商品名称 */
842
- itemName: string
843
- }[]
844
- total: number
845
- }
846
- export type queryRejectReasons = {
847
- /** 订单id,拒单原因数组 */
848
- orderId: string
849
- rejectReasons: string[]
850
- }[]
851
- export type calculateUserConsumeInfo = {
852
- cnt: number
853
- fee: number
854
- }[]
855
-
856
- export interface IQueryItemSaleInfoInDays {
857
- itemId: string
858
- saleCount: number
859
- }
860
-
861
- export interface IQueryItemOrderCountAndRejectCount {
862
- [itemId: string]: {
863
- /** 支付成功数量 */
864
- paySucceed: number
865
- /** 拒单数量 */
866
- supplierRejected: number
867
- }
868
- }
869
- }
870
-
871
- /** 用户维度查询 */
872
- export interface QueryByUserController {
873
- /**
874
- * list开票记录
875
- * @returns 开票记录
876
- * @path /query/user/list-order-invoice
877
- */
878
- listOrderInvoice(request:Request.getOrderInvoiceRequest): Promise<DTO.IPositiveOrderInvoice[]>
879
-
880
- /**
881
- * list开票记录
882
- * @returns 开票记录
883
- * @path /query/user/list-order-invoice-count
884
- */
885
- listOrderInvoiceCount(request:Request.getOrderInvoiceRequest): Promise<number>
886
- /**
887
- * 根据订单id查询开票记录
888
- * @returns 开票记录
889
- * @path /query/user/get-order-invoice-by-order-id
890
- */
891
- getOrderInvoiceByOrderId(request:any): Promise<DTO.IPositiveOrderInvoice>
892
- /**
893
- * 根据发票 id 查询发票
894
- * @returns 开票记录
895
- * @path /query/user/get-order-invoice-by-invoice-id
896
- */
897
- getOrderInvoiceByInvoiceId(request: any): Promise<DTO.IPositiveOrderInvoice>;
898
- /**
899
- * 根据订单id查询订单
900
- * @path /query/user/get-order-by-id
901
- */
902
- getOrderById<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(
903
- request: Request.getOrderById<K>
904
- ): Promise<DTO.QueryDataRes<K>>
905
- /**
906
- * 根据订单id列表查询订单
907
- * @path /query/user/query-order-by-id-list
908
- */
909
- queryOrderByIdList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(
910
- request: Request.queryOrderByIdList<K>
911
- ): Promise<DTO.QueryDataRes<K>[]>
912
- /**
913
- * 查询用户订单数量
914
- * @returns 订单数量
915
- * @path /query/user/get-user-order-count
916
- */
917
- getUserOrderCount(request: Request.getUserOrderCount): Promise<number>
918
- /**
919
- * 查询用户列表订单数量
920
- * @path /query/user/mget-user-order-count-list
921
- */
922
- mgetUserOrderCountList(request: Request.mgetUserOrderCountList): Promise<Response.mgetUserOrderCountList>
923
- /**
924
- * 查询用户订单
925
- * @path /query/user/query-user-order
926
- */
927
- queryUserOrder<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(
928
- request: Request.queryUserOrder<K>
929
- ): Promise<DTO.QueryDataRes<K>[]>
930
- /**
931
- * 查询主单关联的子单列表
932
- * @path /query/user/query-sub-order
933
- */
934
- querySubOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(
935
- request: Request.querySubOrderList<K>
936
- ): Promise<DTO.QueryDataRes<K>[]>
937
- /**
938
- * 计算用户消费信息,查丛库
939
- * @returns 消费金额
940
- * @path /query/user/calculate-user-consume-info
941
- */
942
- calculateUserConsumeInfo(request: Request.calculateUserConsumeInfo): Promise<Response.calculateUserConsumeInfo>
943
- /**
944
- * 查询时间范围内下过单的用户Id列表,查丛库
945
- * @returns 用户Id列表
946
- * @path /query/user/query-union-id-list-by-time-range
947
- */
948
- queryUnionIdListByTimeRange(request: Request.queryUnionIdListByTimeRange): Promise<string[]>
949
- /**
950
- * 查询订单合并记录
951
- * @path /query/user/query-order-merge-record-by-order-id
952
- */
953
- queryOrderMergeRecordByOrderId(
954
- request: Request.queryOrderMergeRecordByOrderId
955
- ): Promise<Response.queryOrderMergeRecordByOrderId[]>
956
- }
957
-
958
- /** 门店维度查询 */
959
- export interface QueryByStoreController {
960
- /**
961
- * 查询门店订单列表
962
- * @path /query/store/query-order-list
963
- */
964
- queryOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.queryStoreOrderList<K>): Promise<DTO.QueryDataRes<K>[]>
965
- /**
966
- * 查询订单数量
967
- * @returns 订单数量
968
- * @path /query/store/get-order-count
969
- */
970
- getOrderCount(request: Request.getStoreOrderCount): Promise<number>
971
- /**
972
- * 查询拒单原因
973
- * @path /query/store/query-reject-reasons
974
- */
975
- queryRejectReasons(request: Request.queryRejectReasons): Promise<Response.queryRejectReasons>
976
- }
977
-
978
- /** 供应商维度查询 */
979
- export interface QueryBySupplierController {
980
- /**
981
- * 查询门店订单列表
982
- * @path /query/supplier/query-order-list
983
- */
984
- queryOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.querySupplierOrderList<K>): Promise<DTO.QueryDataRes<K>[]>
985
- /**
986
- * 查询订单数量
987
- * @returns 订单数量
988
- * @path /query/supplier/get-order-count
989
- */
990
- getOrderCount(request: Request.getSupplierOrderCount): Promise<number>
991
- /**
992
- * 查询拒单原因
993
- * @path /query/supplier/query-reject-reasons
994
- */
995
- queryRejectReasons(request: Request.queryRejectReasons): Promise<Response.queryRejectReasons>
996
-
997
- /**
998
- * 数据统计
999
- * @path /query/supplier/query-order-for-statistics
1000
- */
1001
- queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.IQueryOrderForStatisticsForSupplier<K>): Promise<DTO.QueryDataRes<K>[]>
1002
- /**
1003
- * 获取订单份数
1004
- * @path /query/supplier/mget-order-quantity
1005
- */
1006
- mgetOrderQuantity(request: Request.mgetOrderQuantity): Promise<Record<string, number>>
1007
- /**
1008
- * 获取行程单列表,按照履约时间升序
1009
- * @path /query/supplier/query-departure-group-list
1010
- */
1011
- queryDepartureGroupList(request: Request.queryDepartureGroupList): Promise<Response.queryDepartureGroupList[]>
1012
- /**
1013
- * 获取行程单总数
1014
- * @return 行程单总数
1015
- * @path /query/supplier/get-departure-group-count
1016
- */
1017
- getDepartureGroupCount(request: Request.getDepartureGroupCount): Promise<number>
1018
- }
1019
-
1020
- /** web查询 */
1021
- export interface QueryByWebController {
1022
- /**
1023
- * 查询订单列表
1024
- * @path /query/web/query-order-list
1025
- */
1026
- queryOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.queryOrderList<K>): Promise<DTO.QueryDataRes<K>[]>
1027
- /**
1028
- * 查询订单数量
1029
- * @returns 订单数量
1030
- * @path /query/web/get-order-count
1031
- */
1032
- getOrderCount(request: Request.getOrderCount): Promise<number>
1033
- /**
1034
- * 查询订单操作记录
1035
- * @path /query/web/query-order-operate-record
1036
- */
1037
- queryOrderOperateRecord(request: Request.IQueryOrderOperateRecord): Promise<DTO.IOrderOperatorRecord[]>
1038
- /**
1039
- * 查询订单列表(统计类场景专用), 返回所有满足条件的订单数据, 不支持分页和排序
1040
- * @path /query/web/query-order-for-statistics
1041
- */
1042
- queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.IQueryOrderForStatistics<K>): Promise<DTO.QueryDataRes<K>[]>
1043
- }
1044
-
1045
- /** 商品维度查询 */
1046
- export interface QueryByCommodityController {
1047
- /**
1048
- * 查询商品销量Top
1049
- * @path /query/commodity/query-top-sale-item
1050
- */
1051
- queryTopSaleItem(request: Request.queryTopSaleItem): Promise<Response.queryTopSaleItem[]>
1052
- /**
1053
- * 查询有销量的商品
1054
- * @path /query/commodity/query-sale-item
1055
- */
1056
- querySaleItem(request: Request.querySaleItem): Promise<Response.querySaleItem[]>
1057
- /**
1058
- * 查询出团日期内的订单Id
1059
- * @returns 订单Id列表
1060
- * @path /query/commodity/query-order-in-departure-date
1061
- */
1062
- queryOrderInDepartureDate<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.queryOrderInDepartureDate<K>): Promise<DTO.QueryDataRes<K>[]>
1063
- /**
1064
- * 根据skuId列表查询订单
1065
- * @path /query/commodity/query-order-by-sku-id-list
1066
- */
1067
- queryOrderBySkuIdList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.queryOrderBySkuIdList<K>): Promise<DTO.QueryDataRes<K>[]>
1068
- /**
1069
- * 获取行程单列表,按照履约时间升序
1070
- * @path /query/commodity/query-itinerary-list
1071
- */
1072
- queryItineraryList(request: Request.queryItineraryList): Promise<Response.queryItineraryList[]>
1073
- /**
1074
- * 获取行程单总数
1075
- * @return 行程单总数
1076
- * @path /query/commodity/get-itinerary-count
1077
- */
1078
- getItineraryCount(request: Request.getItineraryCount): Promise<number>
1079
- /**
1080
- * 聚会单查询,按照履约时间排序
1081
- * @path /query/commodity/query-party-order-info
1082
- */
1083
- queryPartyOrderInfo(request: Request.queryPartyOrderInfo): Promise<Response.queryPartyOrderInfo[]>
1084
- /**
1085
- * 聚会单总数
1086
- * @return 聚会单总数
1087
- * @path /query/commodity/get-party-order-count
1088
- */
1089
- getPartyOrderCount(request: Request.getPartyOrderCount): Promise<number>
1090
- /**
1091
- * 查询聚会单详情
1092
- * @path /query/commodity/query-party-order-detail
1093
- */
1094
- queryPartyOrderDetail<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.IQueryPartyOrderDetail<K>): Promise<DTO.QueryDataRes<K>[]>
1095
- /**
1096
- * 查询某个时间段内下单情况
1097
- * @path /query/commodity/query-order-by-time-range
1098
- */
1099
- queryPeriodTradeOrderList(request: Request.queryPeriodTradeOrderList): Promise<Response.queryPeriodTradeOrderList[]>
1100
- /**
1101
- * 查询某个时间段内工作人员和酒店订单接单和拒单情况
1102
- * @path /query/commodity/query-period-trade-order-operator-list
1103
- */
1104
- queryPeriodTradeOrderOperatorList(request: Request.queryPeriodTradeOrderOperatorList): Promise<Response.queryPeriodTradeOrderOperatorList[]>
1105
- /**
1106
- * 查询动销数据
1107
- * @path /query/commodity/query-rolling-sales-statistics
1108
- */
1109
- queryRollingSalesStatistics(request: Request.queryRollingSalesStatistics): Promise<Response.queryRollingSalesStatistics>
1110
- /**
1111
- * 查询动销统计总计金额
1112
- */
1113
- getRollingSalesStatisticsTotalAmount(request: Request.getRollingSalesStatisticsTotalAmount): Promise<number>
1114
-
1115
- /**
1116
- * 查询近N天的商品售卖信息
1117
- * @path /query/commodity/query-item-sales-info-in-days
1118
- */
1119
- queryItemSalesInfoInDays(request: Request.IQueryItemSaleInfoInDays): Promise<Response.IQueryItemSaleInfoInDays[]>
1120
-
1121
- /**
1122
- * 查询一段时间内商品的订单支付成功数量和拒单数量
1123
- */
1124
- queryItemOrderCountAndRejectCount(request: Request.IQueryItemOrderCountAndRejectCount): Promise<Response.IQueryItemOrderCountAndRejectCount>
1125
- }
1126
- }