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
d810dc5c
Commit
d810dc5c
authored
Sep 21, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
a8a7f374
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
OrderGoods.php
application/models/DAO/Order/OrderGoods.php
+7
-0
No files found.
application/models/DAO/Order/OrderGoods.php
View file @
d810dc5c
...
...
@@ -66,8 +66,15 @@ class OrderGoodsModel extends \DAO\AbstractModel {
}
public
function
getOrderGoodsCountByStoreId
(
$storeId
){
$this
->
setDb
(
$this
->
dbName
);
$orderDao
=
\DAO\Order\OrderModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$where
[
'store_id'
]
=
$storeId
;
$where
[
'is_refund'
]
=
array
(
'neq'
,
ApiConst
::
refundSuccess
);
$whereOrder
[
'store_id'
]
=
array
(
'eq'
,
$storeId
);
$whereOrder
[
'order_state'
]
=
array
(
'in'
,
ArrayConst
::
orderCloseAndCancel
);
$orderIds
=
$orderDao
->
getFieldByWhere
(
$whereOrder
,
'order_id'
);
if
(
$orderIds
){
$where
[
'order_id'
]
=
array
(
'notin'
,
$orderIds
);
}
if
(
is_array
(
$where
)){
$where
=
$this
->
db
->
getSqlWhereByArray
(
$where
);
}
...
...
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