Commit ecd4f9e0 authored by wwccw0591's avatar wwccw0591

upd

parent 161e49d4
......@@ -39,10 +39,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$op = isset($this->setStorageType[$type]) ? $this->setStorageType[$type] : 1; //默认增加库存
$goodsDao->db->doTransaction();
$ret1 = $goodsDao->updateStorage($goodsId, $num, $op);
$ret2 = true;
if($op==1) { //如果就库存调整
$ret2 = $commonDao->updateStorage($data['goods_commonid'], $op);
}
$ret2 = $commonDao->updateStorage($data['goods_commonid'], $op);
if(!$ret1 || !$ret2) {
$goodsDao->db->doRollback();
......
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