@be-link/pos-cli-nodejs 0.0.159 → 0.0.161
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
|
@@ -17,6 +17,7 @@ declare class QueryByCommodityService extends BaseService implements Service.Que
|
|
|
17
17
|
queryItemSalesInfoInDays(request: Service.Request.IQueryItemSaleInfoInDays): Promise<Service.Response.IQueryItemSaleInfoInDays[]>;
|
|
18
18
|
getRollingSalesStatisticsTotalAmount(request: Service.Request.getRollingSalesStatisticsTotalAmount): Promise<number>;
|
|
19
19
|
queryRollingSalesStatistics(request: Service.Request.queryRollingSalesStatistics): Promise<Service.Response.queryRollingSalesStatistics>;
|
|
20
|
+
queryItemOrderCountAndRejectCount(request: Service.Request.IQueryItemOrderCountAndRejectCount): Promise<Service.Response.IQueryItemOrderCountAndRejectCount[]>;
|
|
20
21
|
}
|
|
21
22
|
declare const queryByCommodityService: QueryByCommodityService;
|
|
22
23
|
export default queryByCommodityService;
|
|
@@ -52,6 +52,9 @@ class QueryByCommodityService extends service_1.default {
|
|
|
52
52
|
queryRollingSalesStatistics(request) {
|
|
53
53
|
return (0, http_1.callApi)(this.getApiUrl(this.queryRollingSalesStatistics), request);
|
|
54
54
|
}
|
|
55
|
+
queryItemOrderCountAndRejectCount(request) {
|
|
56
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryItemOrderCountAndRejectCount), request);
|
|
57
|
+
}
|
|
55
58
|
}
|
|
56
59
|
const queryByCommodityService = new QueryByCommodityService();
|
|
57
60
|
exports.default = queryByCommodityService;
|
|
@@ -543,6 +543,14 @@ export declare namespace Service {
|
|
|
543
543
|
interface IQueryOrderOperateRecord {
|
|
544
544
|
orderId: string;
|
|
545
545
|
}
|
|
546
|
+
interface IQueryItemOrderCountAndRejectCount {
|
|
547
|
+
/** 商品ID */
|
|
548
|
+
itemIdList: string[];
|
|
549
|
+
/** 履约起始时间 */
|
|
550
|
+
startTime: number;
|
|
551
|
+
/** 履约结束时间 */
|
|
552
|
+
endTime: number;
|
|
553
|
+
}
|
|
546
554
|
}
|
|
547
555
|
namespace Response {
|
|
548
556
|
interface mgetUserOrderCountList {
|
|
@@ -664,6 +672,14 @@ export declare namespace Service {
|
|
|
664
672
|
itemId: string;
|
|
665
673
|
saleCount: number;
|
|
666
674
|
}
|
|
675
|
+
interface IQueryItemOrderCountAndRejectCount {
|
|
676
|
+
[itemId: string]: {
|
|
677
|
+
/** 支付成功数量 */
|
|
678
|
+
paySucceed: number;
|
|
679
|
+
/** 拒单数量 */
|
|
680
|
+
supplierRejected: number;
|
|
681
|
+
};
|
|
682
|
+
}
|
|
667
683
|
}
|
|
668
684
|
/** 用户维度查询 */
|
|
669
685
|
interface QueryByUserController {
|
|
@@ -857,5 +873,9 @@ export declare namespace Service {
|
|
|
857
873
|
* @path /query/commodity/query-item-sales-info-in-days
|
|
858
874
|
*/
|
|
859
875
|
queryItemSalesInfoInDays(request: Request.IQueryItemSaleInfoInDays): Promise<Response.IQueryItemSaleInfoInDays[]>;
|
|
876
|
+
/**
|
|
877
|
+
* 查询一段时间内商品的订单支付成功数量和拒单数量
|
|
878
|
+
*/
|
|
879
|
+
queryItemOrderCountAndRejectCount(request: Request.IQueryItemOrderCountAndRejectCount): Promise<Response.IQueryItemOrderCountAndRejectCount[]>;
|
|
860
880
|
}
|
|
861
881
|
}
|