Commit ee85d0cd authored by wwccw0591's avatar wwccw0591

ccw:master_dev

parent 524ba214
...@@ -11,8 +11,8 @@ class ApiConst ...@@ -11,8 +11,8 @@ class ApiConst
const randLengh = 8; const randLengh = 8;
//10天数秒 //10天数秒
// const tenDaySecond = 864000; const tenDaySecond = 864000;
const tenDaySecond = 300; //const tenDaySecond = 300;
//一天 //一天
const oneDaySecond = 86400; const oneDaySecond = 86400;
//半天 //半天
......
...@@ -394,7 +394,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel ...@@ -394,7 +394,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
$orderDao = \DAO\Order\OrderModel::getInstance(DbNameConst::salveDBConnectName); $orderDao = \DAO\Order\OrderModel::getInstance(DbNameConst::salveDBConnectName);
$res = file_get_contents($this->baseDir .PathConst::orderPaymentTimeConf); $res = file_get_contents($this->baseDir .PathConst::orderPaymentTimeConf);
$this->lastOrderId = !empty($res) ? $res : ApiConst::zero; $this->lastOrderId = !empty($res) ? $res : ApiConst::zero;
$where['payment_time'] =Common::format(" payment_time > {0} and payment_time <={1}",$this->lastOrderId,TIMESTAMP); $where=Common::format(" add_time > {0} and add_time <={1}",$this->lastOrderId,TIMESTAMP);
$res = $orderDao->getAllByWhere($where, $orderDao->getOrderDetailField()); $res = $orderDao->getAllByWhere($where, $orderDao->getOrderDetailField());
$results = array(); $results = array();
if (!empty($res)) { if (!empty($res)) {
...@@ -508,7 +508,6 @@ class ShopkeeperServiceModel extends \Business\AbstractModel ...@@ -508,7 +508,6 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
//店铺订单统计任务脚本 //店铺订单统计任务脚本
public function storeStatictisTask() public function storeStatictisTask()
{ {
$orderTotals = $this->getOrderTotal(); $orderTotals = $this->getOrderTotal();
$memberTotals = $this->getMemberTotal(); $memberTotals = $this->getMemberTotal();
$storeStatisticsDayDao = \DAO\Store\StoreStatisticsDayModel::getInstance(DbNameConst::masterDBConnectName); $storeStatisticsDayDao = \DAO\Store\StoreStatisticsDayModel::getInstance(DbNameConst::masterDBConnectName);
......
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