Commit 77d6e040 authored by christ's avatar christ

storage

parent 1ea45b40
......@@ -798,7 +798,7 @@ class OrderConfirmUtil {
/**
* 更新商品对应库存(更新数据库库存同时更新redis缓存)
*
* updateSaleNumFlag 是否需要增减销量
* @param $storeCarts
*/
public function updateGoodsStorage($storeCartsList,$op = \Our\ApiConst::minus,$updateSaleNumFlag= true ){
......
......@@ -259,6 +259,7 @@ class GoodsCommonModel extends \DAO\AbstractModel {
$updateSaleNumOp = $op==\Our\ApiConst::minus?'+':'-';
}else{
$updateSaleNumOp = '=';
$updateSaleNumFlag= false;
}
$goodsCommonSql = ' goods_storage = case goods_commonid ';
......
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