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