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
5336fa0f
authored
Dec 03, 2021
by
杨铁龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
适配接口修改
parent
214700eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
11 deletions
model/order.ts
service/order.ts
model/order.ts
View file @
5336fa0f
...
...
@@ -54,6 +54,10 @@ export interface OrderTableListItem {
RefundedAmount
:
number
;
remarkTitle
:
string
;
remarkContent
:
string
;
chatTypeCode
:
string
;
lastMsgContent
:
string
;
lastMsgTime
:
string
;
unreadCount
:
number
;
}
export
const
orderPredict
=
{
...
...
@@ -64,14 +68,17 @@ export const orderPredict = {
status
:
"Status_label"
,
remark
:
"Remark"
,
time
:
"CreatedDate"
,
createTime
:
"CreatedDate"
,
PayAmount
:
"PayAmount"
,
PaidAmount
:
"PaidAmount"
,
RefundAmount
:
"RefundAmount"
,
RefundedAmount
:
"RefundedAmount"
,
chat
:
"UniplatImChatId"
,
remarkTitle
:
"Title"
,
remarkContent
:
"Remark"
remarkContent
:
"Remark"
,
chatTypeCode
:
"UniplatChatTypeCode"
,
lastMsgContent
:
"UniplatLastMsgContent"
,
lastMsgTime
:
"UniplatLastMsgTime"
,
unreadCount
:
0
};
export
const
enum
PayStatus
{
...
...
service/order.ts
View file @
5336fa0f
...
...
@@ -28,7 +28,7 @@ class OrderService {
}
public
openOrder
(
params
:
{
product
Id
:
string
|
number
;
product
Code
:
string
;
srcPlatform
:
SrcPlatform
;
createdType
:
OperationType
;
})
{
...
...
@@ -36,7 +36,7 @@ class OrderService {
.
model
(
this
.
generalOrder
)
.
action
(
"addOrder"
)
.
addInputs_parameter
({
Product
Id
:
params
.
productId
,
Product
Code
:
params
.
productCode
,
SrcPlatform
:
params
.
srcPlatform
,
CreatedType
:
params
.
createdType
,
})
...
...
@@ -59,16 +59,21 @@ class OrderService {
.
execute
();
}
public
getOrders
(
index
:
number
)
{
public
getOrders
(
productId
:
number
,
index
:
number
,
size
=
100
)
{
return
this
.
getSdk
()
.
model
(
this
.
generalOrder
)
.
list
(
"userOrderList"
)
.
query
({
item_size
:
100
,
pageIndex
:
index
})
.
then
((
r
)
=>
this
.
handler
.
buildRows
<
OrderTableListItem
>
(
r
.
pageData
.
rows
,
orderPredict
)
.
addPrefilter
({
ProductId
:
productId
})
.
query
({
item_size
:
size
,
pageIndex
:
index
})
.
then
((
r
)
=>
{
return
{
total
:
r
.
pageData
.
record_count
,
list
:
this
.
handler
.
buildRows
<
OrderTableListItem
>
(
r
.
pageData
.
rows
,
orderPredict
)
}
}
);
}
...
...
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