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
cf5e78ae
Commit
cf5e78ae
authored
Feb 19, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
06af79fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
center-order/app/base/api/impl/action/order.js
+2
-2
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
+5
-11
No files found.
center-order/app/base/api/impl/action/order.js
View file @
cf5e78ae
...
@@ -29,8 +29,8 @@ class OrderAPI extends APIBase {
...
@@ -29,8 +29,8 @@ class OrderAPI extends APIBase {
opResult
=
await
this
.
addOrder
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
addOrder
(
pobj
,
pobj
.
actionBody
);
await
this
.
pushOrder
(
opResult
,
pobj
,
pobj
.
actionBody
);
await
this
.
pushOrder
(
opResult
,
pobj
,
pobj
.
actionBody
);
break
;
break
;
case
"getOrder
List"
:
//创建订单
case
"getOrder
Info"
:
//获取订单信息
opResult
=
await
this
.
orderinfoSve
.
getOrder
List
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
orderinfoSve
.
getOrder
Info
(
pobj
,
pobj
.
actionBody
);
break
;
break
;
case
"getPayOrderInfo"
:
//获取付款订单信息
case
"getPayOrderInfo"
:
//获取付款订单信息
opResult
=
await
this
.
orderinfoSve
.
getPayOrderInfo
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
orderinfoSve
.
getPayOrderInfo
(
pobj
,
pobj
.
actionBody
);
...
...
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
View file @
cf5e78ae
...
@@ -192,19 +192,13 @@ class OrderInfoService extends ServiceBase {
...
@@ -192,19 +192,13 @@ class OrderInfoService extends ServiceBase {
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
async
getOrderList
(
pobj
,
actionBody
)
{
//获取已经付款的订单信息列表
async
getOrderInfo
(
pobj
,
actionBody
)
{
//获取已经付款的订单信息列表
if
(
actionBody
.
pageIndex
)
{
var
pageSize
=
Number
(
actionBody
.
pageSize
||
20
);
actionBody
.
pageIndex
=
1
;
}
if
(
actionBody
.
pageSize
)
{
actionBody
.
pageSize
=
20
;
}
var
pageSize
=
Number
(
actionBody
.
pageSize
);
if
(
pageSize
>
50
)
{
if
(
pageSize
>
50
)
{
pageSize
=
50
;
pageSize
=
50
;
}
}
var
pageIndex
=
Number
(
actionBody
.
page
Size
);
var
pageIndex
=
Number
(
actionBody
.
page
Index
||
1
);
var
pageIndex
=
actionBody
.
pageIndex
==
1
?
0
:
Number
((
actionBody
.
pageIndex
-
1
)
*
pageSize
);
var
from
=
pageIndex
==
1
?
0
:
Number
((
pageIndex
-
1
)
*
pageSize
);
var
sql
=
"select `orderNo`,`channelServiceNo`,`channelOrderNo`,`channelUserId`,`ownerUserId`,`payTime`,`quantity`,`serviceQuantity`,`orderStatusName`,`orderStatus`,`totalSum`,`payTotalSum`,`refundSum`,`invoiceApplyStatus`,`opNotes`,`channelItemCode`,`channelItemName`,`serviceItemCode`,`picUrl`"
var
sql
=
"select `orderNo`,`channelServiceNo`,`channelOrderNo`,`channelUserId`,`ownerUserId`,`payTime`,`quantity`,`serviceQuantity`,`orderStatusName`,`orderStatus`,`totalSum`,`payTotalSum`,`refundSum`,`invoiceApplyStatus`,`opNotes`,`channelItemCode`,`channelItemName`,`serviceItemCode`,`picUrl`"
+
" from v_order where uapp_id="
+
pobj
.
appInfo
.
uapp_id
+
" and channelUserId="
+
pobj
.
userInfo
.
channel_userid
;
+
" from v_order where uapp_id="
+
pobj
.
appInfo
.
uapp_id
+
" and channelUserId="
+
pobj
.
userInfo
.
channel_userid
;
...
@@ -217,7 +211,7 @@ class OrderInfoService extends ServiceBase {
...
@@ -217,7 +211,7 @@ class OrderInfoService extends ServiceBase {
if
(
actionBody
.
orderStatus
)
{
if
(
actionBody
.
orderStatus
)
{
sql
+=
" and orderStatus ='"
+
actionBody
.
orderStatus
+
"'"
;
sql
+=
" and orderStatus ='"
+
actionBody
.
orderStatus
+
"'"
;
}
}
sql
+=
" LIMIT "
+
pageSize
+
" OFFSET "
+
pageIndex
;
sql
+=
" LIMIT "
+
pageSize
+
" OFFSET "
+
from
;
var
list
=
await
this
.
customQuery
(
sql
);
var
list
=
await
this
.
customQuery
(
sql
);
return
system
.
getResultSuccess
(
list
);
return
system
.
getResultSuccess
(
list
);
...
...
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