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
d76db5a9
Commit
d76db5a9
authored
Jan 10, 2019
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库存相关问题
parent
c197ec2f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
GoodsClassService.php
application/models/Business/Goods/GoodsClassService.php
+3
-4
ClassStoreService.php
application/models/Business/Store/ClassStoreService.php
+1
-1
No files found.
application/models/Business/Goods/GoodsClassService.php
View file @
d76db5a9
...
...
@@ -66,7 +66,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
//验证参数
/*
$addressDao = \DAO\AddressModel::getInstance();
$addressDao
=
\DAO\AddressModel
::
getInstance
();
$validFlag
=
$addressDao
->
getValidAddress
(
$where
);
if
(
!
$validFlag
){
\Error\ErrorModel
::
throwException
(
$addressDao
->
errorCode
);
...
...
@@ -88,7 +88,6 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
if
(
$serviceParentClassIds
){
$classIds
=
array_merge
(
$serviceParentClassIds
,
$classIds
);
}
var_dump($classIds);*/
/*
//获取可快递店铺对应分类
...
...
@@ -97,12 +96,12 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
$classIds = array_merge($expressClassIds,$classIds);
}
*/
$classIds
=
array
();
/*
$classIds = array();
$platformFirstClassDao = \DAO\GoodsClass\PlatformFirstClassModel::getInstance();
$firstClassList = \Our\RedisHelper::cachedFunction(\Redis\Db3\PlatformFirstClassRedisModel::getInstance(),array(&$platformFirstClassDao, 'getList'),array(),\Our\ApiConst::oneHour,array());
if($firstClassList){
$classIds = array_column($firstClassList,'gc_id');
}
}
*/
$classIdKeys
=
array_flip
(
$classIds
);
$goodsClassDao
=
\DAO\GoodsClassModel
::
getInstance
();
$parentClasses
=
$goodsClassDao
->
getParentClasses
();
...
...
application/models/Business/Store/ClassStoreService.php
View file @
d76db5a9
...
...
@@ -39,7 +39,7 @@ class ClassStoreServiceModel extends \Business\AbstractModel{
if
(
!
$gcId
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyGcId
);
}
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db6\ClassStoreRedisModel
::
getInstance
(),
array
(
&
$classStoreModel
,
'getList'
),
array
(
array
(
'gc_id'
=>
$gcId
),
'store_id,fav_time'
),
\Our\ApiConst
::
oneHour
,
array
(
$memberId
));
/* \Our\RedisHelper::cachedFunction(\Redis\Db6\ClassStoreRedisModel::getInstance(), array(&$classStoreModel, 'getList'), array(array('gc_id'=>$gcId),'store_id,fav_time'), \Our\ApiConst::oneHour,array($memberId));*/
}
...
...
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