Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9ee32e50
authored
Dec 03, 2021
by
杨铁龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更改getOrders
parent
d6a7d544
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
service/order.ts
service/order.ts
View file @
9ee32e50
...
@@ -63,12 +63,16 @@ class OrderService {
...
@@ -63,12 +63,16 @@ class OrderService {
.
execute
();
.
execute
();
}
}
public
getOrders
(
productId
:
number
,
index
:
number
,
size
=
100
)
{
public
getOrders
(
params
:
{
return
this
.
getSdk
()
productId
?:
number
;
index
:
number
;
size
?:
number
})
{
const
list
=
this
.
getSdk
()
.
model
(
this
.
generalOrder
)
.
model
(
this
.
generalOrder
)
.
list
(
"userOrderList"
)
.
list
(
"userOrderList"
)
.
addPrefilter
({
ProductId
:
productId
})
if
(
params
.
productId
)
{
.
query
({
item_size
:
size
,
pageIndex
:
index
})
list
.
addPrefilter
({
ProductId
:
params
.
productId
})
}
return
list
.
query
({
item_size
:
params
.
size
||
100
,
pageIndex
:
params
.
index
})
.
then
((
r
)
=>
{
.
then
((
r
)
=>
{
return
{
return
{
total
:
r
.
pageData
.
record_count
,
total
:
r
.
pageData
.
record_count
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment