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
4d03d548
Commit
4d03d548
authored
Sep 20, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
a8812ef4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
OrderGoods.php
application/models/DAO/Order/OrderGoods.php
+2
-1
No files found.
application/models/DAO/Order/OrderGoods.php
View file @
4d03d548
...
@@ -54,6 +54,7 @@ class OrderGoodsModel extends \DAO\AbstractModel {
...
@@ -54,6 +54,7 @@ class OrderGoodsModel extends \DAO\AbstractModel {
*/
*/
public
function
update
(
$where
,
$data
){
public
function
update
(
$where
,
$data
){
$this
->
setDb
(
DbNameConst
::
masterDBConnectName
);
$this
->
setDb
(
DbNameConst
::
masterDBConnectName
);
$data
[
'gmt_update'
]
=
TIMESTAMP
;
return
$this
->
db
->
update
(
$this
->
_tableName
)
->
where
(
$where
)
->
rows
(
$data
)
->
execute
();
return
$this
->
db
->
update
(
$this
->
_tableName
)
->
where
(
$where
)
->
rows
(
$data
)
->
execute
();
}
}
...
@@ -224,7 +225,7 @@ class OrderGoodsModel extends \DAO\AbstractModel {
...
@@ -224,7 +225,7 @@ class OrderGoodsModel extends \DAO\AbstractModel {
}
}
public
function
getMemberStoreStaticsByCreateTime
(
$gmtCreate
,
$pageIndex
,
$pageSize
){
public
function
getMemberStoreStaticsByCreateTime
(
$gmtCreate
,
$pageIndex
,
$pageSize
){
$this
->
setDb
(
$this
->
dbName
);
$this
->
setDb
(
$this
->
dbName
);
$where
=
\Our\Common
::
format
(
' gmt_
create>={0} and gmt_cre
ate<{1} '
,
$gmtCreate
,
TIMESTAMP
);
$where
=
\Our\Common
::
format
(
' gmt_
update>={0} and gmt_upd
ate<{1} '
,
$gmtCreate
,
TIMESTAMP
);
$res
=
$this
->
lists
(
$where
,
array
(
'gmt_create'
=>
'asc'
),
$this
->
sumField
,
$pageIndex
,
$pageSize
);
$res
=
$this
->
lists
(
$where
,
array
(
'gmt_create'
=>
'asc'
),
$this
->
sumField
,
$pageIndex
,
$pageSize
);
return
$res
[
'list'
]
?
$res
:
false
;
return
$res
[
'list'
]
?
$res
:
false
;
}
}
...
...
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