Commit 532835a5 authored by christ's avatar christ

ccw

parent b2f7916c
...@@ -44,6 +44,7 @@ class GoodsModel extends \DAO\AbstractModel { ...@@ -44,6 +44,7 @@ class GoodsModel extends \DAO\AbstractModel {
} else { //调整库存预警为不需要预警 } else { //调整库存预警为不需要预警
$updateSql = 'goods_storage_alarm =0'; $updateSql = 'goods_storage_alarm =0';
} }
$updateSql=$updateSql.",goods_edittime=".TIMESTAMP;
$updateAllSql = "UPDATE {$this->_tableName} set {$updateSql} where {$whereSql}"; $updateAllSql = "UPDATE {$this->_tableName} set {$updateSql} where {$whereSql}";
return $this->db->update($this->_tableName)->query($updateAllSql); return $this->db->update($this->_tableName)->query($updateAllSql);
} }
......
...@@ -43,6 +43,7 @@ class GoodsCommonModel extends \DAO\AbstractModel { ...@@ -43,6 +43,7 @@ class GoodsCommonModel extends \DAO\AbstractModel {
} else { } else {
$updateSql = 'goods_storage_alarm = 0'; $updateSql = 'goods_storage_alarm = 0';
} }
$updateSql=$updateSql . ",goods_edittime=".TIMESTAMP;
$updateAllSql = "UPDATE {$this->_tableName} set {$updateSql} where {$whereSql}"; $updateAllSql = "UPDATE {$this->_tableName} set {$updateSql} where {$whereSql}";
return $this->db->update($this->_tableName)->query($updateAllSql); return $this->db->update($this->_tableName)->query($updateAllSql);
} }
......
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