@be-link/pos-cli-nodejs 1.0.15 → 1.0.17

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