Commit fc4798c3 authored by wwccw0591's avatar wwccw0591

pc

parent fadc599a
...@@ -709,7 +709,7 @@ class OrderModel extends \DAO\AbstractModel ...@@ -709,7 +709,7 @@ class OrderModel extends \DAO\AbstractModel
if(!empty($orderId)){ if(!empty($orderId)){
$this->deleteFindByOrderIdCache($orderId); $this->deleteFindByOrderIdCache($orderId);
$orderGoodsDao=\DAO\Order\OrderGoodsModel::getInstance(DbNameConst::masterDBConnectName); $orderGoodsDao=\DAO\Order\OrderGoodsModel::getInstance(DbNameConst::masterDBConnectName);
$orderGoodsDao->deleteOrderGoodsCache($orderId); $orderGoodsDao->deleteOrderGoodsCache($memberId,$orderId);
} }
} }
......
...@@ -100,9 +100,14 @@ class OrderGoodsModel extends \DAO\AbstractModel { ...@@ -100,9 +100,14 @@ class OrderGoodsModel extends \DAO\AbstractModel {
return $this->getOrderGoods($where,$field); return $this->getOrderGoods($where,$field);
} }
public function deleteOrderGoodsCache($orderIds){ public function deleteOrderGoodsCache($memberId,$orderIds){
if($memberId){
return \Our\RedisHelper::delCachedFunction(\Redis\Db5\OrderRedisModel::getInstance(), array(&$this, 'getOrderGoodsByOrderIds'), array($memberId));
}
if($orderIds){
return \Our\RedisHelper::delCachedFunction(\Redis\Db5\OrderRedisModel::getInstance(), array(&$this, 'getOrderGoodsByOrderIds'), array($orderIds)); return \Our\RedisHelper::delCachedFunction(\Redis\Db5\OrderRedisModel::getInstance(), array(&$this, 'getOrderGoodsByOrderIds'), array($orderIds));
} }
}
public function getIsRefundMoney($orderGoodses,$promotionsId){ public function getIsRefundMoney($orderGoodses,$promotionsId){
$isRefundMoney=ApiConst::zero; $isRefundMoney=ApiConst::zero;
foreach($orderGoodses as $orderGood){ foreach($orderGoodses as $orderGood){
......
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