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
0ee06732
Commit
0ee06732
authored
Nov 22, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
orderDetail
parent
999a2208
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
OrderService.php
application/models/Business/Order/OrderService.php
+13
-4
RefundService.php
application/models/Business/Order/RefundService.php
+1
-1
No files found.
application/models/Business/Order/OrderService.php
View file @
0ee06732
...
...
@@ -231,7 +231,7 @@ class OrderServiceModel extends \Business\AbstractModel
*/
public
function
getOrderDetail
(
$orderId
)
{
//
error_reporting(E_ALL);
error_reporting
(
E_ALL
);
$orderDao
=
\DAO\Order\OrderModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$addressDao
=
\DAO\AddressModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$orderCommonDao
=
\DAO\Order\OrderCommonModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
...
...
@@ -240,7 +240,7 @@ class OrderServiceModel extends \Business\AbstractModel
$storeDao
=
\DAO\StoreModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$goodsDao
=
\DAO\GoodsModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
//订单
$order
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db
6
\OrderRedisModel
::
getInstance
(),
array
(
&
$orderDao
,
'findByOrderId'
),
array
(
$orderId
),
\Our\ApiConst
::
oneDaySecond
,
array
(
$orderId
));
$order
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db
5
\OrderRedisModel
::
getInstance
(),
array
(
&
$orderDao
,
'findByOrderId'
),
array
(
$orderId
),
\Our\ApiConst
::
oneDaySecond
,
array
(
$orderId
));
if
(
!
$order
){
ErrorModel
::
throwException
(
CodeConfigModel
::
orderNotExist
);
}
...
...
@@ -268,7 +268,7 @@ class OrderServiceModel extends \Business\AbstractModel
//商店相关信息
// $this->store=$storeDao->get($this->order['storeId']);
// $this->store=Common::convertUnderline($this->store[0]);
$this
->
store
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db
5\Order
RedisModel
::
getInstance
(),
array
(
&
$storeDao
,
'getInfoById'
),
array
(
$this
->
order
[
'storeId'
],
$storeDao
->
detailField
),
\Our\ApiConst
::
sevenDaySecond
,
array
(
$this
->
order
[
'storeId'
]));
$this
->
store
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db
6\Store
RedisModel
::
getInstance
(),
array
(
&
$storeDao
,
'getInfoById'
),
array
(
$this
->
order
[
'storeId'
],
$storeDao
->
detailField
),
\Our\ApiConst
::
sevenDaySecond
,
array
(
$this
->
order
[
'storeId'
]));
$returnData
=
$this
->
order
;
//配送员信息
$this
->
diliveryman
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db5\OrderRedisModel
::
getInstance
(),
array
(
&
$diliverymanDao
,
'findById'
),
array
(
$returnData
[
'diliverymanId'
]),
\Our\ApiConst
::
oneDaySecond
);
...
...
@@ -292,9 +292,18 @@ class OrderServiceModel extends \Business\AbstractModel
$returnData
[
'diliverymanId'
]
=
ApiConst
::
zero
;
$returnData
[
'deliveryman'
]
=
new
\stdClass
();
}
if
(
!
in_array
(
$this
->
order
[
'paymentType'
],
ArrayConst
::
payTypeOnlines
)){
$returnData
[
'offlinePayway'
]
=
$storeDao
->
convertOfflinePayway
(
$this
->
store
[
'offlinePayway'
]);
}
else
{
$returnData
[
'offlinePayway'
]
=
new
\stdClass
();
}
if
(
CURRENTVERSION
!=
NameConst
::
versionOne
){
$returnData
[
'offlinePayway'
]
=
''
;
}
$returnData
[
'storeMemberId'
]
=
$this
->
store
[
'memberId'
];
$returnData
[
'totalGoodsNum'
]
=
$orderGoodsDao
->
getGoodsCount
(
$this
->
orderGoodsList
);
$returnData
[
'offlinePayway'
]
=
$this
->
store
[
'offlinePayway'
]
?
$this
->
store
[
'offlinePayway'
]
:
''
;
// $returnData['offlinePayway'] =
$this->store['offlinePayway'] ? $this->store['offlinePayway'] : '';
$this
->
address
[
'address'
]
=
$orderCommonDao
->
convertReceiveAddress
(
$this
->
address
[
'address'
]);
$returnData
[
'reciverInfo'
]
=
$this
->
address
;
$returnData
[
'reciverInfo'
][
'mobPhone'
]
=!
empty
(
$returnData
[
'reciverInfo'
][
'mobPhone'
])
?
$returnData
[
'reciverInfo'
][
'mobPhone'
]
:
''
;
...
...
application/models/Business/Order/RefundService.php
View file @
0ee06732
...
...
@@ -415,7 +415,7 @@ class RefundServiceModel extends \Business\AbstractModel
if
(
$type
==
ApiConst
::
refundSellerVerify
){
$where
=
$refundReturnDao
->
getProccessOrderBySeller
(
$storeId
);
}
if
(
$type
){
if
(
$type
==
ApiConst
::
refundSellerAgree
){
$where
=
$refundReturnDao
->
getReturnWaitReceive
(
$storeId
);
$order
=
array
(
'receive_time'
=>
'asc'
);
}
...
...
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