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
c64a62d4
Commit
c64a62d4
authored
Nov 28, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
ababbee2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
RefundService.php
application/models/Business/Order/RefundService.php
+4
-2
No files found.
application/models/Business/Order/RefundService.php
View file @
c64a62d4
...
@@ -195,7 +195,7 @@ class RefundServiceModel extends \Business\AbstractModel
...
@@ -195,7 +195,7 @@ class RefundServiceModel extends \Business\AbstractModel
* 退货审核页
* 退货审核页
*
*
*/
*/
public
function
returnGoods
(
$storeId
,
$refundId
,
$sellerState
,
$sellerMessage
,
$isGiveUp
=
ApiConst
::
zero
)
{
public
function
returnGoods
(
$storeId
,
$refundId
,
$sellerState
,
$
refundAmount
,
$
sellerMessage
,
$isGiveUp
=
ApiConst
::
zero
)
{
$refundReturnDao
=
\DAO\Order\RefundReturnModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$refundReturnDao
=
\DAO\Order\RefundReturnModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$orderDao
=
\DAO\Order\OrderModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$orderDao
=
\DAO\Order\OrderModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$orderGoodsDao
=
\DAO\Order\OrderGoodsModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$orderGoodsDao
=
\DAO\Order\OrderGoodsModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
...
@@ -267,12 +267,14 @@ class RefundServiceModel extends \Business\AbstractModel
...
@@ -267,12 +267,14 @@ class RefundServiceModel extends \Business\AbstractModel
$refund_array
[
'return_type'
]
=
'2'
;
//退货类型:1为不用退货,2为需要退货
$refund_array
[
'return_type'
]
=
'2'
;
//退货类型:1为不用退货,2为需要退货
$refund_array
[
'goods_state'
]
=
2
;
$refund_array
[
'goods_state'
]
=
2
;
}
elseif
(
$refund_array
[
'seller_state'
]
==
'3'
)
{
}
elseif
(
$refund_array
[
'seller_state'
]
==
'3'
)
{
$refund_array
[
'refund_state'
]
=
'3'
;
//状态:1为处理中,2为待管理员处理,3为已完成
$refund_array
[
'refund_state'
]
=
'3'
;
//状态:1为处理中,2为待管理员处理,3为已完成
}
else
{
}
else
{
$refund_array
[
'seller_state'
]
=
'2'
;
$refund_array
[
'seller_state'
]
=
'2'
;
$refund_array
[
'refund_state'
]
=
'2'
;
$refund_array
[
'refund_state'
]
=
'2'
;
$refund_array
[
'return_type'
]
=
'1'
;
//选择弃货
$refund_array
[
'return_type'
]
=
'1'
;
//选择弃货
}
}
$refund_array
[
'refund_amount'
]
=
$refundAmount
;
$state
=
$refundReturnDao
->
update
(
$condition
,
$refund_array
);
$state
=
$refundReturnDao
->
update
(
$condition
,
$refund_array
);
if
(
$state
)
{
if
(
$state
)
{
$sellerLogDao
=
\DAO\SellerLogModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$sellerLogDao
=
\DAO\SellerLogModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
...
@@ -334,7 +336,7 @@ class RefundServiceModel extends \Business\AbstractModel
...
@@ -334,7 +336,7 @@ class RefundServiceModel extends \Business\AbstractModel
$whereRefund
[
'refund_id'
]
=
$refundId
;
$whereRefund
[
'refund_id'
]
=
$refundId
;
$refund
=
$refundReturnDao
->
find
(
$whereRefund
);
$refund
=
$refundReturnDao
->
find
(
$whereRefund
);
if
(
$refund
[
'refund_type'
]
==
ApiConst
::
refundTypeGoods
){
if
(
$refund
[
'refund_type'
]
==
ApiConst
::
refundTypeGoods
){
if
(
$this
->
returnGoods
(
$storeId
,
$refundId
,
$refund
[
'sellerState'
],
$text
,
$isGiveUp
)){
if
(
$this
->
returnGoods
(
$storeId
,
$refundId
,
$refund
[
'sellerState'
],
$
refundAmount
,
$
text
,
$isGiveUp
)){
$refundReturnDao
->
deleteRefundCache
(
$refund
[
'buyer_id'
],
$refund
[
'refund_id'
]);
$refundReturnDao
->
deleteRefundCache
(
$refund
[
'buyer_id'
],
$refund
[
'refund_id'
]);
$orderDao
->
deleteOrderCache
(
$refund
[
'buyer_id'
],
$refund
[
'order_id'
],
$refund
[
'store_id'
]);
$orderDao
->
deleteOrderCache
(
$refund
[
'buyer_id'
],
$refund
[
'order_id'
],
$refund
[
'store_id'
]);
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db5\OrderRedisModel
::
getInstance
(),
array
(
&
$refundReturnDao
,
'getList'
),
array
(),
array
(
$refund
[
'store_id'
]));
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db5\OrderRedisModel
::
getInstance
(),
array
(
&
$refundReturnDao
,
'getList'
),
array
(),
array
(
$refund
[
'store_id'
]));
...
...
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