Index: temp/trunk/html/admin/batch/daily.php
===================================================================
--- temp/trunk/html/admin/batch/daily.php	(revision 6973)
+++ temp/trunk/html/admin/batch/daily.php	(revision 6974)
@@ -238,20 +238,4 @@
 	$end_date = date("Y/m/d",strtotime("1 day" ,strtotime($end_date)));
 	// Ç¯ÎðËè¤Ë½¸·×¤¹¤ë¡£
-	/*
-	for($i = 0; $i <= $age_loop; $i++) {
-		$where = $base_where . " AND order_birth >= cast('$start_date' as date)";
-		$start_age = $i * 10;
-		if($i < $age_loop) {
-			$end_age = $start_age+9;
-			$where = $where . " AND order_birth < cast('$end_date' as date)";
-		}else{
-			$where = $base_where . " AND order_birth < cast('$end_date' as date)";
-			$end_age = 999;
-		}
-		lfBatOrderAgeSub($sql . $where, $start, $end, $start_age, $end_age, 1);
-		$end_date = date("Y/m/d",strtotime("1 day" ,strtotime($start_date)));
-		$start_date = date("Y/m/d",strtotime("-10 year",strtotime($start_date)));
-	}
-	*/
 	for($i = 0; $i <= $age_loop; $i++) {
 	    $start_age = $i * 10;
@@ -280,20 +264,4 @@
 	$end_date = date("Y/m/d",strtotime("1 day" ,strtotime($end_date)));
 	// Ç¯ÎðËè¤Ë½¸·×¤¹¤ë¡£
-	/*
-	for($i = 0; $i <= $age_loop; $i++) {
-		$where = $base_where . " AND order_birth >= cast('$start_date' as date)";
-		$start_age = $i * 10;
-		if($i < $age_loop) {
-			$end_age = $start_age+9;
-			$where = $where . " AND order_birth < cast('$end_date' as date)";
-		}else{
-			$where = $base_where . " AND order_birth < cast('$end_date' as date)";
-			$end_age = 999;
-		}
-		lfBatOrderAgeSub($sql . $where, $start, $end, $start_age, $end_age, 1);
-		$end_date = date("Y/m/d",strtotime("1 day" ,strtotime($start_date)));
-		$start_date = date("Y/m/d",strtotime("-10 year",strtotime($start_date)));
-	}
-	*/
 	for($i = 0; $i <= $age_loop; $i++) {
 	    $start_age = $i * 10;
@@ -306,5 +274,5 @@
 	        $end_age = 999;
 	    }
-	    lfBatOrderAgeSub($sql . $where, $start, $end, $start_age, $end_age, 1);
+	    lfBatOrderAgeSub($sql . $where, $start, $end, $start_age, $end_age, 0);
 	}
 
@@ -320,6 +288,4 @@
 	$arrRet = $objQuery->getall($sql, array($start, $end));
 	$sqlval = $arrRet[0];
-	
-	$objQuery->getlastquery();
 	
 	// ¶õÊ¸»ú¤ò"0"¤ËÊÑ´¹
