Commit be526a29 authored by chenchuanwen's avatar chenchuanwen

bug2715

parent 6d165782
......@@ -506,7 +506,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
ErrorModel::throwException(CodeConfigModel::emptyStoreId);
}
$diliveryMan = \DAO\Order\DiliverymanModel::getInstance();
$diliveryMans=\Our\RedisHelper::cachedFunction(\Redis\Db5\OrderRedisModel::getInstance(), array(&$diliveryMan, 'getDeliveryManByStoreId'), array($storeId), \Our\ApiConst::oneHourCache, array($storeId));
$diliveryMans=\Our\RedisHelper::cachedFunction(\Redis\Db6\StoreRedisModel::getInstance(), array(&$diliveryMan, 'getDeliveryManByStoreId'), array($storeId), \Our\ApiConst::oneDaySecond, array($storeId));
foreach($diliveryMans as &$dilivery){
$dilivery['memberAvatar']=$memberDao->getMemberAvatar($dilivery['memberId']);
}
......
......@@ -107,6 +107,7 @@ class DiliverymanModel extends \DAO\AbstractModel
}
public function getDeliveryManByStoreId($storeId){
$where['store_id']=$storeId;
$where['is_del']=ApiConst::zero;
return $this->getByWhere($where);
}
......
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