Commit a16dac68 authored by wwccw0591's avatar wwccw0591

pc

parent 5d2d7ec4
......@@ -690,11 +690,8 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
$this->taskIndex = PageConst::taskPageBegin;
$this->taskSize = PageConst::taskPageSize;
do {
echo 1;
$storeMemberStatisticData = $refundReturnDao->getMemberStoreStaticsByGmtUpdate($gmtUpdate, $this->taskIndex, $this->taskSize);
echo 2;
$storeMemberStatisticData = isset($storeMemberStatisticData['list']) ? $storeMemberStatisticData['list'] : false;
echo 3;
if(!empty($storeMemberStatisticData)){
foreach($storeMemberStatisticData as $item){
$orderDao->deleteOrderCache($item['buyerId'],$item['orderId'],$item['storeId'],true,true);
......@@ -707,10 +704,8 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
}
}
}
echo 4;
$this->taskIndex++;
} while ($storeMemberStatisticData);
echo 5;
file_put_contents($this->baseDir . PathConst::refundRetrunGmtUpdate, TIMESTAMP);
}
......
......@@ -436,6 +436,7 @@ class RefundReturnModel extends \DAO\AbstractModel {
public function getMemberStoreStaticsByGmtUpdate($gmtUpdate,$pageIndex,$pageSize){
$this->setDb($this->dbName);
$where =\Our\Common::format(' gmt_update>={0} and gmt_update<{1} and refund_state={2}',$gmtUpdate,TIMESTAMP,ApiConst::refundStateComplete);
echo $where.'|'.$this->sumField.$pageIndex.$pageSize.';';
$res=$this->lists($where,array('gmt_update'=>'asc'),$this->sumField,$pageIndex,$pageSize);
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