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
524ba214
Commit
524ba214
authored
Aug 23, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
f3b49b10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Order.php
application/models/DAO/Order/Order.php
+3
-0
OrderGoods.php
application/models/DAO/Order/OrderGoods.php
+4
-0
No files found.
application/models/DAO/Order/Order.php
View file @
524ba214
...
@@ -708,7 +708,10 @@ class OrderModel extends \DAO\AbstractModel
...
@@ -708,7 +708,10 @@ class OrderModel extends \DAO\AbstractModel
}
}
if
(
!
empty
(
$orderId
)){
if
(
!
empty
(
$orderId
)){
$this
->
deleteFindByOrderIdCache
(
$orderId
);
$this
->
deleteFindByOrderIdCache
(
$orderId
);
$orderGoodsDao
=
\DAO\Order\OrderGoodsModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$orderGoodsDao
->
deleteOrderGoodsCache
(
$orderId
);
}
}
}
}
//任务脚本方法
//任务脚本方法
public
function
getOrdersByOrderState
(
$orderState
,
$timeField
=
'add_time'
,
$timeLimit
=
ApiConst
::
orderStateWaitConfirmBeyond
,
$field
=
'*'
,
$shippingTypes
=
false
)
public
function
getOrdersByOrderState
(
$orderState
,
$timeField
=
'add_time'
,
$timeLimit
=
ApiConst
::
orderStateWaitConfirmBeyond
,
$field
=
'*'
,
$shippingTypes
=
false
)
...
...
application/models/DAO/Order/OrderGoods.php
View file @
524ba214
...
@@ -99,6 +99,10 @@ class OrderGoodsModel extends \DAO\AbstractModel {
...
@@ -99,6 +99,10 @@ class OrderGoodsModel extends \DAO\AbstractModel {
}
}
return
$this
->
getOrderGoods
(
$where
,
$field
);
return
$this
->
getOrderGoods
(
$where
,
$field
);
}
}
public
function
deleteOrderGoodsCache
(
$orderIds
){
return
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db5\OrderRedisModel
::
getInstance
(),
array
(
&
$this
,
'getOrderGoodsByOrderIds'
),
array
(
$orderIds
));
}
public
function
getIsRefundMoney
(
$orderGoodses
,
$promotionsId
){
public
function
getIsRefundMoney
(
$orderGoodses
,
$promotionsId
){
$isRefundMoney
=
ApiConst
::
zero
;
$isRefundMoney
=
ApiConst
::
zero
;
foreach
(
$orderGoodses
as
$orderGood
){
foreach
(
$orderGoodses
as
$orderGood
){
...
...
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