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
b951d479
Commit
b951d479
authored
Dec 24, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upd
parent
b656e013
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
17 deletions
+22
-17
GoodsCommonService.php
application/models/Business/Goods/GoodsCommonService.php
+22
-17
No files found.
application/models/Business/Goods/GoodsCommonService.php
View file @
b951d479
...
@@ -326,6 +326,8 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
...
@@ -326,6 +326,8 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$storeDao
=
\DAO\StoreModel
::
getInstance
();
$storeDao
=
\DAO\StoreModel
::
getInstance
();
$statGoodsDao
=
\DAO\StatGoodsModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$statGoodsDao
=
\DAO\StatGoodsModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$store_tmp
=
array
();
$store_tmp
=
array
();
$count
=
$statGoodsDao
->
getCountByWhere
(
'1=1'
);
if
(
$count
>
0
)
{
if
(
$datas
=
$goodsDao
->
getList
(
$where
,
$field
))
{
//更新商品报表
if
(
$datas
=
$goodsDao
->
getList
(
$where
,
$field
))
{
//更新商品报表
echo
'in:'
.
count
(
$datas
);
echo
'in:'
.
count
(
$datas
);
foreach
(
$datas
as
$key
=>
$val
)
{
foreach
(
$datas
as
$key
=>
$val
)
{
...
@@ -346,6 +348,9 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
...
@@ -346,6 +348,9 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
}
}
}
}
}
}
}
else
{
file_put_contents
(
$this
->
baseDir
.
\Our\PathConst
::
goodsSellStatTime
,
'0'
);
}
$where
=
'goods_id not in (select sg.goods_id from han_stat_goods sg)'
;
$where
=
'goods_id not in (select sg.goods_id from han_stat_goods sg)'
;
if
(
$datas
=
$goodsDao
->
getList
(
$where
,
$field
))
{
//插入高品报表
if
(
$datas
=
$goodsDao
->
getList
(
$where
,
$field
))
{
//插入高品报表
...
...
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