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
2babff2b
Commit
2babff2b
authored
Nov 23, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oss
parent
3461918f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
OrderService.php
application/models/Business/Order/OrderService.php
+0
-1
ShopkeeperService.php
application/models/Business/Store/ShopkeeperService.php
+2
-1
No files found.
application/models/Business/Order/OrderService.php
View file @
2babff2b
...
...
@@ -231,7 +231,6 @@ class OrderServiceModel extends \Business\AbstractModel
*/
public
function
getOrderDetail
(
$orderId
)
{
error_reporting
(
E_ALL
);
$orderDao
=
\DAO\Order\OrderModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$addressDao
=
\DAO\AddressModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$orderCommonDao
=
\DAO\Order\OrderCommonModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
...
...
application/models/Business/Store/ShopkeeperService.php
View file @
2babff2b
...
...
@@ -309,7 +309,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
$qmDeliveryManLogWhere
[
'order_type'
]
=
ApiConst
::
orderTypeBuy
;
$qmDeliveryManLogs
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db6\StoreRedisModel
::
getInstance
(),
array
(
&
$qmDeliveryManLogDao
,
'getList'
),
array
(
$qmDeliveryManLogWhere
,
$qmDeliveryManLogDao
->
fieldDetail
,
ApiConst
::
zero
,
$pageSize
),
\Our\ApiConst
::
oneDaySecond
,
array
(
$storeId
));
//$orderCommons = $orderCommonDao->getAllByOrderIds($orderIds, $orderCommonDao->orderCommonField);
$ordersOrderCommons
=
Common
::
intergrateOneToOne
(
$orders
,
$qmDeliveryManLogs
,
'orderId'
,
'orderId'
);
$ordersOrderCommons
=
Common
::
intergrateOneToOne
(
$orders
,
$qmDeliveryManLogs
[
'list'
]
,
'orderId'
,
'orderId'
);
$ordersOrderCommons
=
Common
::
intergrateOneToOne
(
$ordersOrderCommons
,
$orderCommons
,
'orderId'
,
'orderId'
);
$orderMerge
=
\Our\Common
::
intergrateOneToMany
(
$ordersOrderCommons
,
$orderGoods
,
'orderId'
,
'orderId'
,
'orderGoods'
);
foreach
(
$orderMerge
as
&
$value
)
{
...
...
@@ -492,6 +492,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
$diliverymanDao
=
\DAO\Order\DiliverymanModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$storeDao
=
\DAO\StoreModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$goodsDao
=
\DAO\GoodsModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$qmDeliveryManDao
=
\DAO\Order\QmDeliverymanLogModel
::
getInstance
();
//订单
$order
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db5\OrderRedisModel
::
getInstance
(),
array
(
&
$orderDao
,
'findByOrderId'
),
array
(
$orderId
),
\Our\ApiConst
::
oneDaySecond
,
array
(
$orderId
));
if
(
$order
[
'store_id'
]
!=
$storeId
)
{
...
...
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