Index: temp/trunk/html/admin/batch/daily.php
===================================================================
--- temp/trunk/html/admin/batch/daily.php	(revision 2853)
+++ temp/trunk/html/admin/batch/daily.php	(revision 2858)
@@ -40,21 +40,22 @@
 	$where = "order_id IN (SELECT order_id FROM dtb_order WHERE delete = 1)";
 	$objQuery->delete("dtb_order_detail", $where);
-
+	
+	// ºÇ¸å¤Î¥Ð¥Ã¥Á¼Â¹Ô¤«¤éLOAD_BATCH_PASSÉÃ·Ð²á¤·¤Æ¤¤¤Ê¤¤¤È¼Â¹Ô¤·¤Ê¤¤¡£
+	$batch_pass = date("Y/m/d H:m:s", $now_time - LOAD_BATCH_PASS);
+	
+	$objQuery = new SC_Query();
+	$arrRet = $objQuery->select("create_date", "dtb_bat_order_daily", "create_date > ?", $batch_pass);
+	if(count($arrRet) > 0) {
+		gfPrintLog("LAST BATCH " . $arrRet[0]['create_date'] . " -> EXIT BATCH $batch_date");
+		return;
+	}
+		
 	// ½¸·×
 	for ($i = $start; $i < $term; $i++) {
-		// ´ðËÜ»þ´Ö¤«¤é1ÆüÊ¬¤µ¤«¤Î¤Ü¤ë
+		// ´ðËÜ»þ´Ö¤«¤é$iÆüÊ¬¤µ¤«¤Î¤Ü¤ë
 		$tmp_time = $now_time - ($i * 24 * 3600);
 				
 		$batch_date = date("Y/m/d", $tmp_time);
 		
-		// ºÇ¸å¤Î¥Ð¥Ã¥Á¼Â¹Ô¤«¤éLOAD_BATCH_PASSÉÃ·Ð²á¤·¤Æ¤¤¤Ê¤¤¤È¼Â¹Ô¤·¤Ê¤¤¡£
-		$batch_pass = date("Y/m/d H:m:s", $tmp_time + LOAD_BATCH_PASS);
-		$objQuery = new SC_Query();
-		$count = $objQuery->count("dtb_bat_order_daily", "create_date > ?", $batch_pass);
-		$objQuery->getLastQuery();
-		if($count > 0) {
-			gfPrintLog("LAST BATCH $batch_pass -> EXIT BATCH $batch_date");
-			return;
-		}
 		
 		gfPrintLog("LOADING BATCH $batch_date");
