Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
58d7f144
Commit
58d7f144
authored
Feb 19, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
6a47f145
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+4
-4
center-channel/app/front/entry/public/apidoc/platform/order.md
+1
-1
No files found.
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
58d7f144
...
@@ -17,9 +17,9 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -17,9 +17,9 @@ class UtilsOrderService extends AppServiceBase {
if
(
!
price_list
)
{
if
(
!
price_list
)
{
return
system
.
getResult
(
null
,
"产品价格列表信息有误,10080"
);
return
system
.
getResult
(
null
,
"产品价格列表信息有误,10080"
);
}
}
var
product_price
=
price_list
.
filter
(
f
=>
f
.
pay_code
==
actionBody
.
pay
_c
ode
);
var
product_price
=
price_list
.
filter
(
f
=>
f
.
pay_code
==
actionBody
.
pay
C
ode
);
if
(
!
product_price
||
product_price
.
length
==
0
)
{
if
(
!
product_price
||
product_price
.
length
==
0
)
{
return
system
.
getResult
(
null
,
"支付价格pay
_c
ode信息有误,10110"
);
return
system
.
getResult
(
null
,
"支付价格pay
C
ode信息有误,10110"
);
}
}
var
totalSum
=
Number
(
product_price
[
0
].
price
)
*
Number
(
actionBody
.
quantity
);
var
totalSum
=
Number
(
product_price
[
0
].
price
)
*
Number
(
actionBody
.
quantity
);
if
(
Number
(
actionBody
.
totalSum
)
<
totalSum
)
{
if
(
Number
(
actionBody
.
totalSum
)
<
totalSum
)
{
...
@@ -37,8 +37,8 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -37,8 +37,8 @@ class UtilsOrderService extends AppServiceBase {
if
(
!
actionBody
.
channelItemCode
)
{
if
(
!
actionBody
.
channelItemCode
)
{
return
system
.
getResult
(
null
,
"产品编码有误,10010"
);
return
system
.
getResult
(
null
,
"产品编码有误,10010"
);
}
}
if
(
!
actionBody
.
pay
_code
||
Number
(
actionBody
.
pay_code
)
<=
0
)
{
if
(
!
actionBody
.
pay
Code
)
{
return
system
.
getResult
(
null
,
"支付价格pay
_c
ode有误,10030"
);
return
system
.
getResult
(
null
,
"支付价格pay
C
ode有误,10030"
);
}
}
if
(
!
actionBody
.
quantity
||
Number
(
actionBody
.
quantity
)
<=
0
)
{
if
(
!
actionBody
.
quantity
||
Number
(
actionBody
.
quantity
)
<=
0
)
{
return
system
.
getResult
(
null
,
"订单数量有误,10050"
);
return
system
.
getResult
(
null
,
"订单数量有误,10050"
);
...
...
center-channel/app/front/entry/public/apidoc/platform/order.md
View file @
58d7f144
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
```
javascript
```
javascript
{
{
"channelItemCode"
:
"fzsbzc"
,
// Y 产品的渠道编码
"channelItemCode"
:
"fzsbzc"
,
// Y 产品的渠道编码
"pay
_c
ode"
:
"zzsbzc-1"
,
// Y 支付价格code
"pay
C
ode"
:
"zzsbzc-1"
,
// Y 支付价格code
"quantity"
:
1
,
// Y 购买数量
"quantity"
:
1
,
// Y 购买数量
"totalSum"
:
699
,
// Y 订单总金额
"totalSum"
:
699
,
// Y 订单总金额
"payTotalSum"
:
699
,
// Y 订单付款总金额
"payTotalSum"
:
699
,
// Y 订单付款总金额
...
...
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