Commit 9ec29e64 authored by wwccw0591's avatar wwccw0591

pc

parent 2abf51ad
......@@ -690,8 +690,11 @@ 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);
......@@ -704,6 +707,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
}
}
}
echo 4;
$this->taskIndex++;
} while ($storeMemberStatisticData);
file_put_contents($this->baseDir . PathConst::refundRetrunGmtUpdate, TIMESTAMP);
......
......@@ -70,13 +70,9 @@ class cliShopkeeperIndex extends basecli
$shopkeeperService = \Business\Store\ShopkeeperServiceModel::getInstance();
$shopkeeperService->baseDir= \Our\Common::getConfig('out.config');
try {
echo 1;
$shopkeeperService->insertStoreMemberStatics();
echo 2;
$shopkeeperService->reduceStoreMemberStatics();
echo 3;
//$shopkeeperService->storeStatictisTask();
echo 4;exit;
$shopkeeperService->updateLastId();
} catch (Exception $ex) {
throw new Exception($ex->getCode() . '|' . $ex->getMessage());
......
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