Commit 2c7c0c2b by 杨铁龙

productId =》 productCode

parent 9cd3ad18
Showing with 3 additions and 3 deletions
......@@ -65,15 +65,15 @@ class OrderService {
}
public getOrders(params: {
productId?: GeneralOrderDirection;
productCode?: GeneralOrderDirection;
index: number;
size?: number;
}) {
const list = this.getSdk()
.model(this.generalOrder)
.list("userOrderList");
if (params.productId) {
list.addPrefilter({ 'ProductId#product.Code': params.productId });
if (params.productCode) {
list.addPrefilter({ 'ProductId#product.Code': params.productCode });
}
return list
.query({ item_size: params.size || 100, pageIndex: params.index })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment