Commit 4d03d548 authored by wwccw0591's avatar wwccw0591

pc

parent a8812ef4
...@@ -54,6 +54,7 @@ class OrderGoodsModel extends \DAO\AbstractModel { ...@@ -54,6 +54,7 @@ class OrderGoodsModel extends \DAO\AbstractModel {
*/ */
public function update($where, $data){ public function update($where, $data){
$this->setDb(DbNameConst::masterDBConnectName); $this->setDb(DbNameConst::masterDBConnectName);
$data['gmt_update']=TIMESTAMP;
return $this->db->update($this->_tableName)->where($where)->rows($data)->execute(); return $this->db->update($this->_tableName)->where($where)->rows($data)->execute();
} }
...@@ -224,7 +225,7 @@ class OrderGoodsModel extends \DAO\AbstractModel { ...@@ -224,7 +225,7 @@ class OrderGoodsModel extends \DAO\AbstractModel {
} }
public function getMemberStoreStaticsByCreateTime($gmtCreate,$pageIndex,$pageSize){ public function getMemberStoreStaticsByCreateTime($gmtCreate,$pageIndex,$pageSize){
$this->setDb($this->dbName); $this->setDb($this->dbName);
$where =\Our\Common::format(' gmt_create>={0} and gmt_create<{1} ',$gmtCreate,TIMESTAMP); $where =\Our\Common::format(' gmt_update>={0} and gmt_update<{1} ',$gmtCreate,TIMESTAMP);
$res=$this->lists($where,array('gmt_create'=>'asc'),$this->sumField,$pageIndex,$pageSize); $res=$this->lists($where,array('gmt_create'=>'asc'),$this->sumField,$pageIndex,$pageSize);
return $res['list']?$res:false; return $res['list']?$res:false;
} }
......
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