Commit d76db5a9 authored by liuyuzhen's avatar liuyuzhen

库存相关问题

parent c197ec2f
...@@ -66,7 +66,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{ ...@@ -66,7 +66,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
//验证参数 //验证参数
/*$addressDao = \DAO\AddressModel::getInstance(); $addressDao = \DAO\AddressModel::getInstance();
$validFlag = $addressDao->getValidAddress($where); $validFlag = $addressDao->getValidAddress($where);
if(!$validFlag){ if(!$validFlag){
\Error\ErrorModel::throwException($addressDao->errorCode); \Error\ErrorModel::throwException($addressDao->errorCode);
...@@ -88,7 +88,6 @@ class GoodsClassServiceModel extends \Business\AbstractModel{ ...@@ -88,7 +88,6 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
if($serviceParentClassIds){ if($serviceParentClassIds){
$classIds = array_merge($serviceParentClassIds,$classIds); $classIds = array_merge($serviceParentClassIds,$classIds);
} }
var_dump($classIds);*/
/* /*
//获取可快递店铺对应分类 //获取可快递店铺对应分类
...@@ -97,12 +96,12 @@ class GoodsClassServiceModel extends \Business\AbstractModel{ ...@@ -97,12 +96,12 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
$classIds = array_merge($expressClassIds,$classIds); $classIds = array_merge($expressClassIds,$classIds);
} }
*/ */
$classIds = array(); /*$classIds = array();
$platformFirstClassDao = \DAO\GoodsClass\PlatformFirstClassModel::getInstance(); $platformFirstClassDao = \DAO\GoodsClass\PlatformFirstClassModel::getInstance();
$firstClassList = \Our\RedisHelper::cachedFunction(\Redis\Db3\PlatformFirstClassRedisModel::getInstance(),array(&$platformFirstClassDao, 'getList'),array(),\Our\ApiConst::oneHour,array()); $firstClassList = \Our\RedisHelper::cachedFunction(\Redis\Db3\PlatformFirstClassRedisModel::getInstance(),array(&$platformFirstClassDao, 'getList'),array(),\Our\ApiConst::oneHour,array());
if($firstClassList){ if($firstClassList){
$classIds = array_column($firstClassList,'gc_id'); $classIds = array_column($firstClassList,'gc_id');
} }*/
$classIdKeys = array_flip($classIds); $classIdKeys = array_flip($classIds);
$goodsClassDao = \DAO\GoodsClassModel::getInstance(); $goodsClassDao = \DAO\GoodsClassModel::getInstance();
$parentClasses = $goodsClassDao->getParentClasses(); $parentClasses = $goodsClassDao->getParentClasses();
......
...@@ -39,7 +39,7 @@ class ClassStoreServiceModel extends \Business\AbstractModel{ ...@@ -39,7 +39,7 @@ class ClassStoreServiceModel extends \Business\AbstractModel{
if(!$gcId){ if(!$gcId){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyGcId); \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));*/
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment