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
665158fa
Commit
665158fa
authored
Dec 24, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upd
parent
7748b87a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
GoodsCommonService.php
application/models/Business/Goods/GoodsCommonService.php
+8
-1
No files found.
application/models/Business/Goods/GoodsCommonService.php
View file @
665158fa
...
@@ -314,7 +314,6 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
...
@@ -314,7 +314,6 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
* Time: 下午 3:37
* Time: 下午 3:37
*/
*/
public
function
updateStatGoods
(){
public
function
updateStatGoods
(){
file_put_contents
(
$this
->
baseDir
.
\Our\PathConst
::
goodsStatTime
,
'1545632401'
);
$beginTime
=
file_get_contents
(
$this
->
baseDir
.
\Our\PathConst
::
goodsStatTime
,
TIMESTAMP
);
$beginTime
=
file_get_contents
(
$this
->
baseDir
.
\Our\PathConst
::
goodsStatTime
,
TIMESTAMP
);
$beginTime
=
$beginTime
?
$beginTime
:
ApiConst
::
zero
;
$beginTime
=
$beginTime
?
$beginTime
:
ApiConst
::
zero
;
$endTime
=
TIMESTAMP
;
$endTime
=
TIMESTAMP
;
...
@@ -369,9 +368,13 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
...
@@ -369,9 +368,13 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
}
}
}
}
}
}
echo
"
\n
"
;
if
(
$result
)
{
//商品报表更新成功
if
(
$result
)
{
//商品报表更新成功
file_put_contents
(
$this
->
baseDir
.
\Our\PathConst
::
goodsStatTime
,
$endTime
);
file_put_contents
(
$this
->
baseDir
.
\Our\PathConst
::
goodsStatTime
,
$endTime
);
echo
"upd goods succ"
;
}
else
{
echo
"upd goods fail"
;
}
}
return
$result
;
return
$result
;
}
}
...
@@ -420,8 +423,12 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
...
@@ -420,8 +423,12 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
}
}
}
}
if
(
!
$result
)
{
if
(
!
$result
)
{
echo
"
\n
"
;
echo
'upd sell fail'
;
$statGoodsDao
->
db
->
doRollback
();
$statGoodsDao
->
db
->
doRollback
();
}
else
{
//商品报表更新成功
}
else
{
//商品报表更新成功
echo
"
\n
"
;
echo
'upd sell succ'
;
$statGoodsDao
->
db
->
doCommit
();
$statGoodsDao
->
db
->
doCommit
();
file_put_contents
(
$this
->
baseDir
.
\Our\PathConst
::
goodsSellStatTime
,
$endTime
);
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