Commit 4d40804a authored by liuyuzhen's avatar liuyuzhen

库存问题

parent 1973fe83
...@@ -400,8 +400,8 @@ class GoodsModel extends \DAO\AbstractModel { ...@@ -400,8 +400,8 @@ class GoodsModel extends \DAO\AbstractModel {
$updateAllSql .= $goodsSql; $updateAllSql .= $goodsSql;
$updateAllSql .= $goodsEdittimeSql; $updateAllSql .= $goodsEdittimeSql;
$updateAllSql .= \Our\Common::format(' where goods_id in ({0})',implode(',',$dataIds)); $updateAllSql .= \Our\Common::format(' where goods_id in ({0})',implode(',',$dataIds));
\Our\Log::getInstance()->write($updateAllSql,'/data/log/applog');
$one = $this->db->update($this->_tableName)->query($updateAllSql); $one = $this->db->update($this->_tableName)->query($updateAllSql);
\Our\Log::getInstance()->write($updateAllSql,'/data/log/app');
if (!$one) { if (!$one) {
$error++; $error++;
} }
......
...@@ -302,7 +302,6 @@ class GoodsCommonModel extends \DAO\AbstractModel { ...@@ -302,7 +302,6 @@ class GoodsCommonModel extends \DAO\AbstractModel {
$updateAllSql .= $saleNumSql; $updateAllSql .= $saleNumSql;
} }
$updateAllSql .= \Our\Common::format(' where goods_commonid in ({0})',implode(',',$dataIds)); $updateAllSql .= \Our\Common::format(' where goods_commonid in ({0})',implode(',',$dataIds));
\Our\Log::getInstance()->write($updateAllSql,'/data/log/app');
$one = $this->db->update($this->_tableName)->query($updateAllSql); $one = $this->db->update($this->_tableName)->query($updateAllSql);
if (!$one) { 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