Commit 567a582c authored by liuyuzhen's avatar liuyuzhen

测试购物车

parent 25163c3e
......@@ -248,7 +248,7 @@ class GoodsCommonModel extends \DAO\AbstractModel {
$dataIds = array();
}
}
if ($updateAllSql != $baseSql) {
if ($goodsCommonSql) {
$goodsCommonSql = trim($goodsCommonSql,',').' END ';
$updateAllSql .= $goodsCommonSql;
if($updateSaleNumFlag){
......@@ -256,8 +256,6 @@ class GoodsCommonModel extends \DAO\AbstractModel {
$updateAllSql .= $saleNumSql;
}
$updateAllSql .= \Our\Common::format(' where goods_commonid in ({0})',implode(',',$dataIds));
\Our\Log::getInstance()->write($updateAllSql);
$one = $this->db->update($this->_tableName)->query($updateAllSql);
if (!$one) {
......
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