Commit 9ec29e64 authored by wwccw0591's avatar wwccw0591

pc

parent 2abf51ad
...@@ -690,8 +690,11 @@ class ShopkeeperServiceModel extends \Business\AbstractModel ...@@ -690,8 +690,11 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
$this->taskIndex = PageConst::taskPageBegin; $this->taskIndex = PageConst::taskPageBegin;
$this->taskSize = PageConst::taskPageSize; $this->taskSize = PageConst::taskPageSize;
do { do {
echo 1;
$storeMemberStatisticData = $refundReturnDao->getMemberStoreStaticsByGmtUpdate($gmtUpdate, $this->taskIndex, $this->taskSize); $storeMemberStatisticData = $refundReturnDao->getMemberStoreStaticsByGmtUpdate($gmtUpdate, $this->taskIndex, $this->taskSize);
echo 2;
$storeMemberStatisticData = isset($storeMemberStatisticData['list']) ? $storeMemberStatisticData['list'] : false; $storeMemberStatisticData = isset($storeMemberStatisticData['list']) ? $storeMemberStatisticData['list'] : false;
echo 3;
if(!empty($storeMemberStatisticData)){ if(!empty($storeMemberStatisticData)){
foreach($storeMemberStatisticData as $item){ foreach($storeMemberStatisticData as $item){
$orderDao->deleteOrderCache($item['buyerId'],$item['orderId'],$item['storeId'],true,true); $orderDao->deleteOrderCache($item['buyerId'],$item['orderId'],$item['storeId'],true,true);
...@@ -704,6 +707,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel ...@@ -704,6 +707,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
} }
} }
} }
echo 4;
$this->taskIndex++; $this->taskIndex++;
} while ($storeMemberStatisticData); } while ($storeMemberStatisticData);
file_put_contents($this->baseDir . PathConst::refundRetrunGmtUpdate, TIMESTAMP); file_put_contents($this->baseDir . PathConst::refundRetrunGmtUpdate, TIMESTAMP);
......
...@@ -70,13 +70,9 @@ class cliShopkeeperIndex extends basecli ...@@ -70,13 +70,9 @@ class cliShopkeeperIndex extends basecli
$shopkeeperService = \Business\Store\ShopkeeperServiceModel::getInstance(); $shopkeeperService = \Business\Store\ShopkeeperServiceModel::getInstance();
$shopkeeperService->baseDir= \Our\Common::getConfig('out.config'); $shopkeeperService->baseDir= \Our\Common::getConfig('out.config');
try { try {
echo 1;
$shopkeeperService->insertStoreMemberStatics(); $shopkeeperService->insertStoreMemberStatics();
echo 2;
$shopkeeperService->reduceStoreMemberStatics(); $shopkeeperService->reduceStoreMemberStatics();
echo 3;
//$shopkeeperService->storeStatictisTask(); //$shopkeeperService->storeStatictisTask();
echo 4;exit;
$shopkeeperService->updateLastId(); $shopkeeperService->updateLastId();
} catch (Exception $ex) { } catch (Exception $ex) {
throw new Exception($ex->getCode() . '|' . $ex->getMessage()); 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