Index: /temp/trunk/html/admin/batch/daily.php
===================================================================
--- /temp/trunk/html/admin/batch/daily.php	(revision 3469)
+++ /temp/trunk/html/admin/batch/daily.php	(revision 3556)
@@ -108,5 +108,5 @@
 	$sql.= "SUM((SELECT COUNT(*) WHERE order_sex = 2 AND customer_id = 0)) AS women_nonmember, ";
 	$sql.= "SUM(total) AS total, ";
-	$sql.= "int4(AVG(total)) AS total_average ";
+	$sql.= "int8(AVG(total)) AS total_average ";
 	$sql.= "FROM dtb_order AS T1 LEFT JOIN dtb_customer AS T2 USING ( customer_id ) ";
 	$sql.= "WHERE T1.delete = 0 AND T1.create_date BETWEEN ? AND ?";		// ¼õÃíºîÀ®Æü¤Ç¸¡º÷¤¹¤ë
@@ -188,5 +188,5 @@
 	
 	// Ç¯Îð¤ÎÈÏ°Ï¤ò»ØÄê¤·¤Æ¥Ç¡¼¥¿Ãê½Ð
-	$sql.= "SELECT COUNT(*) AS order_count, SUM(total) AS total, int4(AVG(total)) AS total_average ";
+	$sql.= "SELECT COUNT(*) AS order_count, SUM(total) AS total, int8(AVG(total)) AS total_average ";
 	$sql.= "FROM dtb_order ";
 	
Index: /temp/trunk/html/admin/total/index.php
===================================================================
--- /temp/trunk/html/admin/total/index.php	(revision 3533)
+++ /temp/trunk/html/admin/total/index.php	(revision 3556)
@@ -553,5 +553,5 @@
 	
 	// ²ñ°÷½¸·×¤Î¼èÆÀ
-	$col = "COUNT(*) AS order_count, SUM(total) AS total, int4(AVG(total)) AS total_average, order_sex";
+	$col = "COUNT(*) AS order_count, SUM(total) AS total, int8(AVG(total)) AS total_average, order_sex";
 	$from = "dtb_order";
 	$objQuery = new SC_Query();
@@ -625,5 +625,5 @@
 	list($where, $arrval) = lfGetWhereMember('T2.create_date', $sdate, $edate, $type);
 	
-	$sql = "SELECT job, count(*) AS order_count, SUM(total) AS total, int4(AVG(total)) AS total_average ";
+	$sql = "SELECT job, count(*) AS order_count, SUM(total) AS total, int8(AVG(total)) AS total_average ";
 	$sql.= "FROM dtb_customer AS T1 LEFT JOIN dtb_order AS T2 USING ( customer_id ) WHERE $where AND T2.delete = 0";
 	$sql.= "GROUP BY job ORDER BY total DESC";
@@ -698,5 +698,5 @@
 		$tmp_col.= "sum(men_member) as men_member, sum(men_nonmember) as men_nonmember,";
 		$tmp_col.= "sum(women_member) as women_member, sum(women_nonmember) as women_nonmember,";
-		$tmp_col.= "sum(total) as total, int4(avg(total_average)) as total_average";
+		$tmp_col.= "sum(total) as total, int8(avg(total_average)) as total_average";
 		$objQuery = new SC_Query();
 		
