@be-link/pos-cli-nodejs 1.0.145 → 1.0.146
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.
package/package.json
CHANGED
|
@@ -55,6 +55,10 @@ export declare namespace QueryByWeb {
|
|
|
55
55
|
/** 支付时间结束时间 */
|
|
56
56
|
paidAtEnd?: number;
|
|
57
57
|
}
|
|
58
|
+
/** 查询条件 */
|
|
59
|
+
interface IQueryCondition {
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
}
|
|
58
62
|
}
|
|
59
63
|
namespace Result {
|
|
60
64
|
interface ISearchOrderResult {
|
|
@@ -1168,15 +1172,17 @@ export declare namespace Service {
|
|
|
1168
1172
|
*/
|
|
1169
1173
|
queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.IQueryOrderForStatistics<K>): Promise<DTO.QueryDataResProxy<K>[]>;
|
|
1170
1174
|
/**
|
|
1171
|
-
*
|
|
1172
|
-
* @path /query/web/
|
|
1175
|
+
* 查询所有订单ID
|
|
1176
|
+
* @path /query/web/query-all-order-ids
|
|
1173
1177
|
*/
|
|
1174
|
-
|
|
1178
|
+
queryAllOrderIds(request: QueryByWeb.Param.IQueryCondition): Promise<string[]>;
|
|
1175
1179
|
/**
|
|
1176
|
-
*
|
|
1177
|
-
* @path /query/web/
|
|
1180
|
+
* 根据订单ID列表汇总剩余金额
|
|
1181
|
+
* @path /query/web/sum-remain-fee-by-order-ids
|
|
1178
1182
|
*/
|
|
1179
|
-
|
|
1183
|
+
sumRemainFeeByOrderIds(request: {
|
|
1184
|
+
orderIds: string[];
|
|
1185
|
+
}): Promise<number>;
|
|
1180
1186
|
}
|
|
1181
1187
|
/** 商品维度查询 */
|
|
1182
1188
|
interface QueryByCommodityController {
|
|
@@ -7,8 +7,10 @@ declare class QueryByWebService extends BaseService implements Service.QueryByWe
|
|
|
7
7
|
getOrderCount(request: Service.Request.getOrderCount): Promise<number>;
|
|
8
8
|
queryOrderOperateRecord(request: Service.Request.IQueryOrderOperateRecord): Promise<DTO.IOrderOperatorRecord[]>;
|
|
9
9
|
queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.IQueryOrderForStatistics<K>): Promise<DTO.QueryDataResProxy<K>[]>;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
queryAllOrderIds(param: QueryByWeb.Param.IQueryCondition): Promise<string[]>;
|
|
11
|
+
sumRemainFeeByOrderIds(request: {
|
|
12
|
+
orderIds: string[];
|
|
13
|
+
}): Promise<number>;
|
|
12
14
|
}
|
|
13
15
|
declare const queryByWebService: QueryByWebService;
|
|
14
16
|
export default queryByWebService;
|
|
@@ -38,14 +38,14 @@ class QueryByWebService extends service_1.default {
|
|
|
38
38
|
return result.map(item => posProxy_1.default.createProxy(item));
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
queryAllOrderIds(param) {
|
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
return (0, http_1.callApi)(this.getApiUrl(this.
|
|
43
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryAllOrderIds), param);
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
sumRemainFeeByOrderIds(request) {
|
|
47
47
|
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
return (0, http_1.callApi)(this.getApiUrl(this.
|
|
48
|
+
return (0, http_1.callApi)(this.getApiUrl(this.sumRemainFeeByOrderIds), request);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
}
|