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
db1233f9
Commit
db1233f9
authored
Dec 24, 2018
by
testshenbd
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into master_dev
parents
1b548800
b656e013
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
GoodsCommonService.php
application/models/Business/Goods/GoodsCommonService.php
+8
-2
No files found.
application/models/Business/Goods/GoodsCommonService.php
View file @
db1233f9
...
...
@@ -314,7 +314,6 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
* Time: 下午 3:37
*/
public
function
updateStatGoods
(){
file_put_contents
(
$this
->
baseDir
.
\Our\PathConst
::
goodsStatTime
,
'1545632401'
);
$beginTime
=
file_get_contents
(
$this
->
baseDir
.
\Our\PathConst
::
goodsStatTime
,
TIMESTAMP
);
$beginTime
=
$beginTime
?
$beginTime
:
ApiConst
::
zero
;
$endTime
=
TIMESTAMP
;
...
...
@@ -369,9 +368,13 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
}
}
}
echo
"
\n
"
;
if
(
$result
)
{
//商品报表更新成功
file_put_contents
(
$this
->
baseDir
.
\Our\PathConst
::
goodsStatTime
,
$endTime
);
echo
"upd goods succ"
;
}
else
{
echo
"upd goods fail"
;
}
return
$result
;
}
...
...
@@ -383,7 +386,6 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
* Time: 下午 6:19
*/
public
function
updateStatGoodsSell
(){
file_put_contents
(
$this
->
baseDir
.
\Our\PathConst
::
goodsSellStatTime
,
''
);
$beginTime
=
file_get_contents
(
$this
->
baseDir
.
\Our\PathConst
::
goodsSellStatTime
,
TIMESTAMP
);
$beginTime
=
$beginTime
?
$beginTime
:
ApiConst
::
zero
;
$endTime
=
TIMESTAMP
;
...
...
@@ -420,8 +422,12 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
}
}
if
(
!
$result
)
{
echo
"
\n
"
;
echo
'upd sell fail'
;
$statGoodsDao
->
db
->
doRollback
();
}
else
{
//商品报表更新成功
echo
"
\n
"
;
echo
'upd sell succ'
;
$statGoodsDao
->
db
->
doCommit
();
file_put_contents
(
$this
->
baseDir
.
\Our\PathConst
::
goodsSellStatTime
,
$endTime
);
}
...
...
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