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
84ad41c7
Commit
84ad41c7
authored
Jul 17, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucommune-back operate api
parent
ea7b0fe4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
center-order/app/base/service/impl/dbcorder/ucommuneOrderSve.js
+10
-10
No files found.
center-order/app/base/service/impl/dbcorder/ucommuneOrderSve.js
View file @
84ad41c7
...
@@ -7,6 +7,8 @@ class OrderInfoService extends ServiceBase {
...
@@ -7,6 +7,8 @@ class OrderInfoService extends ServiceBase {
this
.
orderInfoDao
=
system
.
getObject
(
"db.dbcorder.orderinfoDao"
);
this
.
orderInfoDao
=
system
.
getObject
(
"db.dbcorder.orderinfoDao"
);
this
.
needInfoDao
=
system
.
getObject
(
"db.dbneed.needinfoDao"
);
this
.
needInfoDao
=
system
.
getObject
(
"db.dbneed.needinfoDao"
);
this
.
orderRegionDao
=
system
.
getObject
(
"db.dbcorder.orderregionDao"
);
this
.
orderRegionDao
=
system
.
getObject
(
"db.dbcorder.orderregionDao"
);
this
.
ordercontactsDao
=
system
.
getObject
(
"db.dbcorder.ordercontactsDao"
);
this
.
flowlogDao
=
system
.
getObject
(
"db.dbcorder.flowlogDao"
);
}
}
async
getOrderInfo
(
pobj
,
actionBody
)
{
//获取订单列表信息
async
getOrderInfo
(
pobj
,
actionBody
)
{
//获取订单列表信息
...
@@ -211,7 +213,7 @@ class OrderInfoService extends ServiceBase {
...
@@ -211,7 +213,7 @@ class OrderInfoService extends ServiceBase {
// 交付单列表
// 交付单列表
async
getOrderDeliveryInfo
(
pobj
,
actionBody
)
{
async
getOrderDeliveryInfo
(
pobj
,
actionBody
)
{
var
pageSize
=
Number
(
actionBody
.
pageSize
||
2
0
);
var
pageSize
=
Number
(
actionBody
.
pageSize
||
1
0
);
if
(
pageSize
>
50
)
{
if
(
pageSize
>
50
)
{
pageSize
=
50
;
pageSize
=
50
;
}
}
...
@@ -266,6 +268,10 @@ class OrderInfoService extends ServiceBase {
...
@@ -266,6 +268,10 @@ class OrderInfoService extends ServiceBase {
return
result
;
return
result
;
}
}
async
getOrderLogInfo
(
pobj
,
actionBody
)
{
//获取订单日志信息
var
list
=
await
this
.
flowlogDao
.
getlogListBySourceOrderNo
(
actionBody
.
orderNo
);
return
list
;
}
// 交付单详情
// 交付单详情
async
getOrderDelivery
(
pobj
,
actionBody
)
{
async
getOrderDelivery
(
pobj
,
actionBody
)
{
var
sql
=
"select * from c_order_delivery where sourceOrderNo=:sourceOrderNo"
;
var
sql
=
"select * from c_order_delivery where sourceOrderNo=:sourceOrderNo"
;
...
@@ -285,18 +291,12 @@ class OrderInfoService extends ServiceBase {
...
@@ -285,18 +291,12 @@ class OrderInfoService extends ServiceBase {
result
.
data
.
orderContact
=
item
;
result
.
data
.
orderContact
=
item
;
}
}
}
//是否获取联系人,isGetContact有值则不获取
}
//是否获取联系人,isGetContact有值则不获取
return
result
;
var
paramWhere
=
{
}
// 根据月份分组支付订单
var
customerAreaSql
=
"select province as name, count as value from c_order_region where uapp_id=:uappId"
var
customerAreaList
=
await
this
.
orderRegionDao
.
customQuery
(
customerAreaSql
,
paramWhere
);
var
result
=
system
.
getResultSuccess
(
customerAreaList
);
// 操作明细
result
.
data
.
deliveryFlowLog
=
await
this
.
getOrderLogInfo
(
pobj
,
actionBody
);
return
result
;
return
result
;
}
}
// ----------------------------------------------uk运营后台 结束
// ----------------------------------------------uk运营后台 结束
}
}
module
.
exports
=
OrderInfoService
;
module
.
exports
=
OrderInfoService
;
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