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
7e03a4ee
Commit
7e03a4ee
authored
Sep 09, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
fca4b5e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
Order.php
application/models/DAO/Order/Order.php
+4
-7
No files found.
application/models/DAO/Order/Order.php
View file @
7e03a4ee
...
@@ -310,7 +310,7 @@ class OrderModel extends \DAO\AbstractModel
...
@@ -310,7 +310,7 @@ class OrderModel extends \DAO\AbstractModel
return
DescribeConst
::
serviceFee
;
return
DescribeConst
::
serviceFee
;
}
else
{
}
else
{
return
DescribeConst
::
freightFee
;
return
DescribeConst
::
freightFee
;
}
}
}
}
...
@@ -792,6 +792,7 @@ class OrderModel extends \DAO\AbstractModel
...
@@ -792,6 +792,7 @@ class OrderModel extends \DAO\AbstractModel
if
(
!
empty
(
$memberId
))
{
if
(
!
empty
(
$memberId
))
{
$this
->
deleteGetListByMemberId
(
$memberId
);
$this
->
deleteGetListByMemberId
(
$memberId
);
\DAO\MemberModel
::
getInstance
()
->
deleteTotalCache
(
$memberId
);
}
}
if
(
!
empty
(
$stroeId
))
{
if
(
!
empty
(
$stroeId
))
{
...
@@ -811,22 +812,18 @@ class OrderModel extends \DAO\AbstractModel
...
@@ -811,22 +812,18 @@ class OrderModel extends \DAO\AbstractModel
$this
->
deleteGetListByMemberId
(
$diliverymanId
);
$this
->
deleteGetListByMemberId
(
$diliverymanId
);
$orderGoodsDao
=
\DAO\Order\OrderGoodsModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$orderGoodsDao
=
\DAO\Order\OrderGoodsModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$orderGoodsDao
->
deleteOrderGoodsCache
(
$diliverymanId
,
$orderId
);
$orderGoodsDao
->
deleteOrderGoodsCache
(
$diliverymanId
,
$orderId
);
$QmDeliveryLogDao
=
\DAO\Order\QmDeliverymanLogModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$QmDeliveryLogDao
->
deleteOrderCache
(
$diliverymanId
,
$orderId
);
}
}
if
(
!
empty
(
$orderId
))
{
if
(
!
empty
(
$orderId
))
{
$this
->
deleteFindByOrderIdCache
(
$orderId
);
$this
->
deleteFindByOrderIdCache
(
$orderId
);
$orderGoodsDao
=
\DAO\Order\OrderGoodsModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$orderGoodsDao
=
\DAO\Order\OrderGoodsModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$orderGoodsDao
->
deleteOrderGoodsCache
(
$memberId
,
$orderId
);
$orderGoodsDao
->
deleteOrderGoodsCache
(
$memberId
,
$orderId
);
\DAO\MemberModel
::
getInstance
()
->
deleteTotalCache
(
$memberId
);
$orderCommonDao
=
\DAO\Order\OrderCommonModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$orderCommonDao
=
\DAO\Order\OrderCommonModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db5\OrderRedisModel
::
getInstance
(),
array
(
&
$orderCommonDao
,
'findByOrderId'
),
array
(
$orderId
,
$orderCommonDao
->
orderCommonField
));
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db5\OrderRedisModel
::
getInstance
(),
array
(
&
$orderCommonDao
,
'findByOrderId'
),
array
(
$orderId
,
$orderCommonDao
->
orderCommonField
));
}
}
if
(
!
empty
(
$diliverymanId
)){
$this
->
deleteGetListByMemberId
(
$diliverymanId
);
$QmDeliveryLogDao
=
\DAO\Order\QmDeliverymanLogModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$QmDeliveryLogDao
->
deleteOrderCache
(
$diliverymanId
,
$orderId
);
}
return
true
;
return
true
;
}
}
...
...
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