Ignore:
Timestamp:
2006/08/30 13:32:11 (20 years ago)
Author:
naka
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/batch/daily.php

    r2853 r2858  
    4040    $where = "order_id IN (SELECT order_id FROM dtb_order WHERE delete = 1)"; 
    4141    $objQuery->delete("dtb_order_detail", $where); 
    42  
     42     
     43    // ºÇ¸å¤Î¥Ð¥Ã¥Á¼Â¹Ô¤«¤éLOAD_BATCH_PASSÉ÷вᤷ¤Æ¤¤¤Ê¤¤¤È¼Â¹Ô¤·¤Ê¤¤¡£ 
     44    $batch_pass = date("Y/m/d H:m:s", $now_time - LOAD_BATCH_PASS); 
     45     
     46    $objQuery = new SC_Query(); 
     47    $arrRet = $objQuery->select("create_date", "dtb_bat_order_daily", "create_date > ?", $batch_pass); 
     48    if(count($arrRet) > 0) { 
     49        gfPrintLog("LAST BATCH " . $arrRet[0]['create_date'] . " -> EXIT BATCH $batch_date"); 
     50        return; 
     51    } 
     52         
    4353    // ½¸·× 
    4454    for ($i = $start; $i < $term; $i++) { 
    45         // ´ðËÜ»þ´Ö¤«¤é1Æüʬ¤µ¤«¤Î¤Ü¤ë 
     55        // ´ðËÜ»þ´Ö¤«¤é$iÆüʬ¤µ¤«¤Î¤Ü¤ë 
    4656        $tmp_time = $now_time - ($i * 24 * 3600); 
    4757                 
    4858        $batch_date = date("Y/m/d", $tmp_time); 
    4959         
    50         // ºÇ¸å¤Î¥Ð¥Ã¥Á¼Â¹Ô¤«¤éLOAD_BATCH_PASSÉ÷вᤷ¤Æ¤¤¤Ê¤¤¤È¼Â¹Ô¤·¤Ê¤¤¡£ 
    51         $batch_pass = date("Y/m/d H:m:s", $tmp_time + LOAD_BATCH_PASS); 
    52         $objQuery = new SC_Query(); 
    53         $count = $objQuery->count("dtb_bat_order_daily", "create_date > ?", $batch_pass); 
    54         $objQuery->getLastQuery(); 
    55         if($count > 0) { 
    56             gfPrintLog("LAST BATCH $batch_pass -> EXIT BATCH $batch_date"); 
    57             return; 
    58         } 
    5960         
    6061        gfPrintLog("LOADING BATCH $batch_date"); 
Note: See TracChangeset for help on using the changeset viewer.