Commit 7c8b56d6 by Sixong.Zhu

update prefilter

parent 60c79359
Showing with 3 additions and 2 deletions
......@@ -10,6 +10,7 @@ import {
UploadImageItem,
orderPayItemPredict,
} from "../model";
import { GeneralOrderDirection } from '../model/order-product';
class OrderService {
public readonly generalOrder = "general_order_info";
......@@ -64,7 +65,7 @@ class OrderService {
}
public getOrders(params: {
productId?: number;
productId?: GeneralOrderDirection;
index: number;
size?: number;
}) {
......@@ -72,7 +73,7 @@ class OrderService {
.model(this.generalOrder)
.list("userOrderList");
if (params.productId) {
list.addPrefilter({ ProductId: params.productId });
list.addPrefilter({ 'ProductId#product.Code': params.productId });
}
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