Changeset 2858 for temp/trunk/html/admin/batch
- Timestamp:
- 2006/08/30 13:32:11 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/batch/daily.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/batch/daily.php
r2853 r2858 40 40 $where = "order_id IN (SELECT order_id FROM dtb_order WHERE delete = 1)"; 41 41 $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 43 53 // ½¸·× 44 54 for ($i = $start; $i < $term; $i++) { 45 // ´ðËÜ»þ´Ö¤«¤é 1Æüʬ¤µ¤«¤Î¤Ü¤ë55 // ´ðËÜ»þ´Ö¤«¤é$iÆüʬ¤µ¤«¤Î¤Ü¤ë 46 56 $tmp_time = $now_time - ($i * 24 * 3600); 47 57 48 58 $batch_date = date("Y/m/d", $tmp_time); 49 59 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 }59 60 60 61 gfPrintLog("LOADING BATCH $batch_date");
Note: See TracChangeset
for help on using the changeset viewer.
