Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
ce306270
Commit
ce306270
authored
Nov 29, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dilivery
parent
b65cd0aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
OrderService.php
application/models/Business/Order/OrderService.php
+10
-4
No files found.
application/models/Business/Order/OrderService.php
View file @
ce306270
...
...
@@ -920,14 +920,20 @@ class OrderServiceModel extends \Business\AbstractModel
$goodsDao
=
\DAO\GoodsModel
::
getInstance
();
$orderIds
=
array_column
(
$orders
[
'list'
],
'orderId'
);
$orderCommons
=
$orderCommonDao
->
getAllByOrderIdsCache
(
$orderIds
,
$diliverymanId
,
$orderCommonDao
->
orderCommonField
);
$orderGoods
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db5\OrderRedisModel
::
getInstance
(),
array
(
&
$orderGoodsDao
,
'getOrderGoodsByOrderIds'
),
array
(
$orderIds
,
$this
->
getGoodsDetailField
()),
\Our\ApiConst
::
oneDaySecond
,
array
(
$diliverymanId
.
'_'
));
$orderMerge
=
Common
::
intergrateOneToMany
(
$orders
[
'list'
],
$orderGoods
,
'orderId'
,
'orderId'
,
'orderGoods'
);
$orderMerge
=
Common
::
intergrateOneToOne
(
$orderMerge
,
$orderCommons
,
'orderId'
,
'orderId'
);
$orderMerge
=
$orderDao
->
convertOrderList
(
$orderMerge
);
$convertResult
=
array
();
//$orderGoods = $goodsDao->convert($orderGoods);
foreach
(
$qmDeliveryLogList
[
'list'
]
as
&
$value
)
{
$delivery
=
$orderMerge
[
$value
[
'orderId'
]];
if
(
$value
[
'orderType'
]
==
ApiConst
::
orderTypeRefund
){
$delivery
=
$orderMerge
[
$refundReturnOrders
[
$value
[
'orderId'
]][
'orderId'
]];
}
else
{
$delivery
=
$orderMerge
[
$value
[
'orderId'
]];
}
$delivery
[
'id'
]
=
$value
[
'id'
];
$delivery
[
'reciverInfo'
]
=
unserialize
(
$delivery
[
'reciverInfo'
]);
$delivery
[
'mobPhone'
]
=
$delivery
[
'reciverInfo'
][
'mob_phone'
];
...
...
@@ -1031,11 +1037,11 @@ class OrderServiceModel extends \Business\AbstractModel
if
(
empty
(
$this
->
orderGoodsList
))
{
ErrorModel
::
throwException
(
CodeConfigModel
::
notExistOrderGoods
);
}
//商店相关信息
$this
->
store
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db5\OrderRedisModel
::
getInstance
(),
array
(
&
$storeDao
,
'getInfoById'
),
array
(
$this
->
order
[
'storeId'
],
$storeDao
->
detailField
),
\Our\ApiConst
::
oneDaySecond
);
$orderGoods
=
$goodsDao
->
convert
(
$this
->
orderGoodsList
);
$convertRefundReturn
=
Array
();
$convertRefundReturn
[
$refundReturn
[
'orderGoodsId'
]]
=
$refundReturn
;
$orderGoods
=
$goodsDao
->
convert
(
$this
->
orderGoodsList
,
false
,
$convertRefundReturn
);
if
(
empty
(
$orderGoods
))
{
$orderGoods
=
array
();
}
...
...
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