Commit 2c7c0c2b by 杨铁龙

productId =》 productCode

parent 9cd3ad18
Showing with 3 additions and 3 deletions
...@@ -65,15 +65,15 @@ class OrderService { ...@@ -65,15 +65,15 @@ class OrderService {
} }
public getOrders(params: { public getOrders(params: {
productId?: GeneralOrderDirection; productCode?: GeneralOrderDirection;
index: number; index: number;
size?: number; size?: number;
}) { }) {
const list = this.getSdk() const list = this.getSdk()
.model(this.generalOrder) .model(this.generalOrder)
.list("userOrderList"); .list("userOrderList");
if (params.productId) { if (params.productCode) {
list.addPrefilter({ 'ProductId#product.Code': params.productId }); list.addPrefilter({ 'ProductId#product.Code': params.productCode });
} }
return list return list
.query({ item_size: params.size || 100, pageIndex: params.index }) .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