Index: temp/trunk/html/admin/batch/daily.php
===================================================================
--- temp/trunk/html/admin/batch/daily.php	(revision 6970)
+++ temp/trunk/html/admin/batch/daily.php	(revision 6971)
@@ -321,4 +321,6 @@
 	$sqlval = $arrRet[0];
 	
+	$objQuery->getlastquery();
+	
 	// ¶õÊ¸»ú¤ò"0"¤ËÊÑ´¹
 	foreach($sqlval as $key => $val) {
@@ -335,6 +337,4 @@
 
 	$objQuery->insert("dtb_bat_order_daily_age", $sqlval);
-	
-	$objQuery->getlastquery();
 }
 
